mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Revert "Fix Per Object Settings toolbutton enabled state on startup"
This reverts commit 8d7df76aa1
.
Contributes to CURA-901
This commit is contained in:
parent
b5c90d67d0
commit
bbd77ee998
1 changed files with 0 additions and 4 deletions
|
@ -16,7 +16,6 @@ class PerObjectSettingsTool(Tool):
|
|||
|
||||
self.setExposedProperties("Model", "SelectedIndex")
|
||||
|
||||
Application.getInstance().getController().toolEnabledStateRequest.connect(self._onToolEnabledStateRequested)
|
||||
Preferences.getInstance().preferenceChanged.connect(self._onPreferenceChanged)
|
||||
|
||||
def event(self, event):
|
||||
|
@ -41,9 +40,6 @@ class PerObjectSettingsTool(Tool):
|
|||
index = self.getModel().find("id", selected_object_id)
|
||||
return index
|
||||
|
||||
def _onToolEnabledStateRequested(self):
|
||||
self._onPreferenceChanged("cura/active_mode")
|
||||
|
||||
def _onPreferenceChanged(self, preference):
|
||||
if preference == "cura/active_mode":
|
||||
enabled = Preferences.getInstance().getValue(preference)==1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue