From 92449a9a66effe9468f9c01251623fa455638f76 Mon Sep 17 00:00:00 2001 From: jneilliii Date: Thu, 25 Jan 2024 17:27:31 -0500 Subject: [PATCH] 1.0.5 remove thumbnail on disconnect, #122 --- .../static/js/prusaslicerthumbnails.js | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js b/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js index 5b0bfff..80940ed 100644 --- a/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js +++ b/octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js @@ -149,7 +149,7 @@ $(function() { }); self.printerStateViewModel.dateString.subscribe(function(data){ - if(data){ + if(data && data != "unknown"){ OctoPrint.files.get('local',self.printerStateViewModel.filepath()) .done(function(file_data){ if(file_data){ diff --git a/setup.py b/setup.py index 22f8abd..96bbcff 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_name = "Slicer Thumbnails" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.0.4" +plugin_version = "1.0.5" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module