Skip to content

Commit

Permalink
fixes #70
Browse files Browse the repository at this point in the history
Possible also #69
  • Loading branch information
synman committed Jan 17, 2022
1 parent 4b16a94 commit 768b358
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions octoprint_bettergrblsupport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def on_after_startup(self):
dest = self._settings.global_get_basefolder("printerProfiles") + os.path.sep + "_bgs.profile"

if not os.path.exists(dest):
src = os.path.dirname(os.path.realpath(__file__)) + os.path.sep + "static" + os.path.sep + "txt" + os.path.sep + "__bgs.profile"
src = os.path.dirname(os.path.realpath(__file__)) + os.path.sep + "static" + os.path.sep + "txt" + os.path.sep + "_bgs.profile"
copyfile(src, dest)
self._settings.set(["old_profile"], self._printer_profile_manager.get_current_or_default()["id"])
self._printer_profile_manager.select("_bgs")
Expand Down Expand Up @@ -1434,18 +1434,18 @@ def on_api_command(self, command, data):
def on_wizard_finish(self, handled):
self._logger.debug("__init__: on_wizard_finish handled=[{}]".format(handled))
if handled:
self._settings.set(["wizard_version"], 2)
self._settings.set(["wizard_version"], 3)
self._settings.save();

def is_wizard_required(self):
requiredVersion = 2
requiredVersion = 3
currentVersion = self._settings.get(["wizard_version"])
self._logger.debug("__init__: is_wizard_required=[{}]".format(currentVersion is None or currentVersion != requiredVersion))
return currentVersion is None or currentVersion != requiredVersion

def get_wizard_version(self):
self._logger.debug("__init__: get_wizard_version")
return 2
return 3

def get_wizard_details(self):
self._logger.debug("__init__: get_wizard_details")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
Please visit the <a href="https://www.apache.org/licenses/LICENSE-2.0.txt" target="_blank">Apache Software Foundation</a> website for more details.
<br>
<br>
<h3>v2.1.1 Release Notes (includes 2.1.0)</h3>
<h3>v2.1.2 Release Notes (includes 2.1.0 & 2.1.1)</h3>
<ul>
<li>Bug fix for misnamed default profile causing everyone grief - <b>a big thanks to Nicolas from France</b> (2.1.2)</li>
<li>Bug fix for Single Point Z-Probe (2.1.1)</li>
<li>5 point (9 point for center selected) frame z-Probing (Enabled in Plugin Settings)</li>
<li>Choose from Highest, Lowest, Mean, and Average positions (selectable in Plugin Settings)</li>
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 = "Better Grbl Support"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "2.1.2dev0"
plugin_version = "2.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 768b358

Please sign in to comment.