Added a pyQtProperty to validate user settings (Might be wrong approach)

CURA-4333
This commit is contained in:
A.Sasin 2017-10-12 21:23:17 +02:00
parent 39891551e3
commit 16bd4430e4
3 changed files with 32 additions and 22 deletions

View file

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