Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffB42 <10328858+JeffB42@users.noreply.github.com>2020-12-24 08:16:42 +0300
committerJeffB42 <10328858+JeffB42@users.noreply.github.com>2020-12-24 08:16:42 +0300
commit09528751149fe2f661b55bb2c2de07364075c0ab (patch)
tree1d3f18330437ddcfd916312e1926fb7d4edfec2b
parenta683c5a665bdd3dc1e7d8bb1e3eee4803d57602f (diff)
added temporary support for deprecated panels, and added warnings to the log
-rwxr-xr-xui/menu.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/menu.go b/ui/menu.go
index 722d381..c6ab921 100755
--- a/ui/menu.go
+++ b/ui/menu.go
@@ -65,6 +65,30 @@ func getPanel(
case "print-menu":
return PrintMenuPanel(ui, parentPanel)
+
+ case "filament_multitool":
+ fallthrough
+ case "extrude_multitool":
+ fallthrough
+ case "extruder":
+ utils.Logger.Warnf("WARNING! the '%s' panel has been deprecated. Please use the 'filament' panel instead.", menuItem.Panel)
+ utils.Logger.Warnf("Support for the %s panel remains in this release, but will be removed in a future.", menuItem.Panel)
+ utils.Logger.Warn("Please update the custom menu structure in your OctoScreen settings in OctoPrint.")
+ return FilamentPanel(ui, parentPanel)
+
+ case "toolchanger":
+ utils.Logger.Warn("WARNING! the 'toolchanger' panel has been renamed to 'tool-changer'. Please use the 'tool-changer' panel instead.")
+ utils.Logger.Warnf("Support for the %s panel remains in this release, but will be removed in a future.", menuItem.Panel)
+ utils.Logger.Warn("Please update the custom menu structure in your OctoScreen settings in OctoPrint.")
+ return ToolChangerPanel(ui, parentPanel)
+
+ case "nozzle-calibration":
+ utils.Logger.Warn("WARNING! the 'nozzle-calibration' panel has been deprecated. Please use the 'z-offset-calibration' panel instead.")
+ utils.Logger.Warn("Support for the nozzle-calibration panel remains in this release, but will be removed in a future.")
+ utils.Logger.Warn("Please update the custom menu structure in your OctoScreen settings in OctoPrint.")
+ return ZOffsetCalibrationPanel(ui, parentPanel)
+
+
default:
logLevel := utils.LowerCaseLogLevel()
if logLevel == "debug" {