Browse Source

Properly disable Per Object Settings toolbutton on first start

On an empty profile, the cura/active_mode preference is not set so the code disabling the button was not called.

Fixes CURA-901
fieldOfView 9 years ago
parent
commit
51ad894711
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/PerObjectSettingsTool/PerObjectSettingsTool.py

+ 1 - 0
plugins/PerObjectSettingsTool/PerObjectSettingsTool.py

@@ -17,6 +17,7 @@ class PerObjectSettingsTool(Tool):
         self.setExposedProperties("Model", "SelectedIndex")
 
         Preferences.getInstance().preferenceChanged.connect(self._onPreferenceChanged)
+        self._onPreferenceChanged("cura/active_mode")
 
     def event(self, event):
         return False