Skip to content

Commit

Permalink
Merge pull request #61 from SimplyPrint/bugfix/file_not_selected
Browse files Browse the repository at this point in the history
4.1.3
  • Loading branch information
AlbertMN authored Nov 12, 2023
2 parents d36a9f1 + 1e44cdb commit 68a9375
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion octoprint_simplyprint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def get_update_information(self):
__plugin_name__ = "SimplyPrint Cloud"
__plugin_pythoncompat__ = ">=3.7,<4"
# Remember to bump the version in setup.py as well
__plugin_version__ = "4.1.2"
__plugin_version__ = "4.1.3"


def __plugin_load__():
Expand Down
3 changes: 3 additions & 0 deletions octoprint_simplyprint/websocket/simplyprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ def _process_demand(self, demand: str, args: Dict[str, Any]) -> None:
self.file_handler.download_file(url, start)
else:
self.file_handler.pending_file = f"SimplyPrint/{file_name}"
if not self.printer.is_current_file(self.file_handler.pending_file, False):
self._logger.debug(f"re-selecting file \"{file_name}\"")
self.printer.select_file(self.file_handler.pending_file, False, False)
if start:
self._logger.debug(f"starting locally stored file \"{file_name}\"")
self._process_demand("start_print", {})
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 @@

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
# Remember to bump the version in octoprint_simplyprint/__init__.py as well
plugin_version = "4.1.2"
plugin_version = "4.1.3"

# 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 68a9375

Please sign in to comment.