diff options
author | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2020-12-24 08:16:42 +0300 |
---|---|---|
committer | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2020-12-24 08:16:42 +0300 |
commit | 09528751149fe2f661b55bb2c2de07364075c0ab (patch) | |
tree | 1d3f18330437ddcfd916312e1926fb7d4edfec2b | |
parent | a683c5a665bdd3dc1e7d8bb1e3eee4803d57602f (diff) |
added temporary support for deprecated panels, and added warnings to the log
-rwxr-xr-x | ui/menu.go | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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" { |