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
This commit is contained in:
fieldOfView 2016-03-01 10:34:00 +01:00
parent 7985a961c4
commit 51ad894711

View file

@ -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