Added notification icon in recomended mode. The notification icon is only

active if one of custom settings is changed
CURA-4333
This commit is contained in:
A.Sasin 2017-10-12 08:57:26 +02:00
parent 2cdec7e47f
commit b318dc7087
3 changed files with 126 additions and 0 deletions

View file

@ -400,6 +400,8 @@ class CuraApplication(QtApplication):
# ALWAYS ask whether to keep or discard the profile
self.showDiscardOrKeepProfileChanges.emit()
sidebarSimpleDiscardOrKeepProfileChanges = pyqtSignal()
@pyqtSlot(str)
def discardOrKeepProfileChangesClosed(self, option):
if option == "discard":
@ -409,6 +411,10 @@ 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()
@pyqtSlot(int)
def messageBoxClosed(self, button):
if self._message_box_callback: