Skip to content

Commit 6a1d9de

Browse files
committed
🐛 Add settings overlay for ordering in Octo<1.6
1 parent ddd5326 commit 6a1d9de

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

octoprint_firmware_check/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from octoprint.access.permissions import Permissions
1414
from octoprint.events import Events
1515
from octoprint.util import to_unicode
16+
from octoprint.util.version import is_octoprint_compatible
1617

1718
from .checks import Severity
1819
from .checks.firmware_broken import FirmwareBrokenChecks
@@ -324,3 +325,20 @@ def register_custom_events(*args, **kwargs):
324325
"octoprint.events.register_custom_events": register_custom_events,
325326
"octoprint.access.permissions": __plugin_implementation__.get_additional_permissions,
326327
}
328+
329+
if is_octoprint_compatible("<1.6"):
330+
__plugin_settings_overlay__ = {
331+
"appearance": {
332+
"components": {
333+
"order": {
334+
"sidebar": [
335+
"plugin_firmware_check_warning",
336+
"plugin_firmware_check_info",
337+
"connection",
338+
"state",
339+
"files",
340+
]
341+
}
342+
}
343+
}
344+
}

0 commit comments

Comments
 (0)