Skip to content

Commit

Permalink
Merge pull request #32 from Kragrathea/TestBranch
Browse files Browse the repository at this point in the history
Add python compatibility flags
  • Loading branch information
Kragrathea authored Aug 17, 2020
2 parents c938bbe + 9816ee8 commit 433e9c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions octoprint_prettygcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def get_update_information(self):
# can be overwritten via __plugin_xyz__ control properties. See the documentation for that.
__plugin_name__ = "PrettyGCode"
__plugin_pythoncompat__ = ">=2.7,<4"

def __plugin_load__():
global __plugin_implementation__
__plugin_implementation__ = PrettyGCodePlugin()
Expand Down
3 changes: 2 additions & 1 deletion octoprint_prettygcode/static/js/prettygcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ $(function () {
if (!viewInitialized) {
viewInitialized = true;

//Watch for bed volume changes
self.printerProfiles.currentProfileData.subscribe(
function(){
//get new build volume.
Expand All @@ -350,7 +351,7 @@ $(function () {
});


//get printer build volume.
//get current (possibly default) printer build volume.
updateBedVolume();

//console.log(["bedVolume",bedVolume]);
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
plugin_name = "OctoPrint-PrettyGCode"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.1"
plugin_version = "1.2"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit 433e9c5

Please sign in to comment.