mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Added a pyQtProperty to validate user settings (Might be wrong approach)
CURA-4333
This commit is contained in:
parent
39891551e3
commit
16bd4430e4
3 changed files with 32 additions and 22 deletions
|
|
@ -402,7 +402,7 @@ class CuraApplication(QtApplication):
|
|||
# ALWAYS ask whether to keep or discard the profile
|
||||
self.showDiscardOrKeepProfileChanges.emit()
|
||||
|
||||
sidebarSimpleDiscardOrKeepProfileChanges = pyqtSignal()
|
||||
#sidebarSimpleDiscardOrKeepProfileChanges = pyqtSignal()
|
||||
|
||||
@pyqtSlot(str)
|
||||
def discardOrKeepProfileChangesClosed(self, option):
|
||||
|
|
@ -414,8 +414,8 @@ class CuraApplication(QtApplication):
|
|||
global_stack.getTop().clear()
|
||||
|
||||
# event handler for SidebarSimple, which will update sliders view visibility (like:sliders..)
|
||||
if Preferences.getInstance().getValue("cura/active_mode") == 0:
|
||||
self.sidebarSimpleDiscardOrKeepProfileChanges.emit()
|
||||
if str(Preferences.getInstance().getValue("cura/active_mode")) == '0':
|
||||
self.getMachineManager().hasUserCustomSettings()
|
||||
|
||||
@pyqtSlot(int)
|
||||
def messageBoxClosed(self, button):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue