Skip to content

Commit 68a9375

Browse files
authored
Merge pull request #61 from SimplyPrint/bugfix/file_not_selected
4.1.3
2 parents d36a9f1 + 1e44cdb commit 68a9375

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

octoprint_simplyprint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def get_update_information(self):
428428
__plugin_name__ = "SimplyPrint Cloud"
429429
__plugin_pythoncompat__ = ">=3.7,<4"
430430
# Remember to bump the version in setup.py as well
431-
__plugin_version__ = "4.1.2"
431+
__plugin_version__ = "4.1.3"
432432

433433

434434
def __plugin_load__():

octoprint_simplyprint/websocket/simplyprint.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,9 @@ def _process_demand(self, demand: str, args: Dict[str, Any]) -> None:
593593
self.file_handler.download_file(url, start)
594594
else:
595595
self.file_handler.pending_file = f"SimplyPrint/{file_name}"
596+
if not self.printer.is_current_file(self.file_handler.pending_file, False):
597+
self._logger.debug(f"re-selecting file \"{file_name}\"")
598+
self.printer.select_file(self.file_handler.pending_file, False, False)
596599
if start:
597600
self._logger.debug(f"starting locally stored file \"{file_name}\"")
598601
self._process_demand("start_print", {})

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

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

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

0 commit comments

Comments
 (0)