mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
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:
parent
2cdec7e47f
commit
b318dc7087
3 changed files with 126 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue