mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
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:
parent
7985a961c4
commit
51ad894711
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ class PerObjectSettingsTool(Tool):
|
||||||
self.setExposedProperties("Model", "SelectedIndex")
|
self.setExposedProperties("Model", "SelectedIndex")
|
||||||
|
|
||||||
Preferences.getInstance().preferenceChanged.connect(self._onPreferenceChanged)
|
Preferences.getInstance().preferenceChanged.connect(self._onPreferenceChanged)
|
||||||
|
self._onPreferenceChanged("cura/active_mode")
|
||||||
|
|
||||||
def event(self, event):
|
def event(self, event):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue