Added an additional unless function to UiPlugin

Allows overriding adding a potentially invalid config to the
preemptive cache for a plugin.
This commit is contained in:
Gina Häußge committed 2016-04-21 19:26:44 +02:00
1 parent 54fe75fb4e
commit cfce3713fe
2 files changed
+14 -3

No files matched your search

+3
View File
@@ -765,6 +765,9 @@ class UiPlugin(OctoPrintPlugin, SortablePlugin):
"""
return None
def get_ui_additional_unless(self):
return False
class WizardPlugin(OctoPrintPlugin, ReloadNeedingPlugin):
"""
The ``WizardPlugin`` mixin allows plugins to report to OctoPrint whether