mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
D6: Refactoring
This commit is contained in:
parent
afc9b71279
commit
26fe0ddbb5
3 changed files with 29 additions and 45 deletions
|
@ -609,11 +609,9 @@ class CuraApplication(QtApplication):
|
|||
print_information = self.getPrintInformation()
|
||||
if should_pause:
|
||||
self.getBackend().pauseSlicing()
|
||||
self.setHideSettings(True)
|
||||
print_information.setPreSliced(True)
|
||||
else:
|
||||
self.getBackend().continueSlicing()
|
||||
self.setHideSettings(False)
|
||||
if print_information:
|
||||
print_information.setPreSliced(False)
|
||||
|
||||
|
@ -1033,17 +1031,4 @@ class CuraApplication(QtApplication):
|
|||
def log(self, msg):
|
||||
Logger.log("d", msg)
|
||||
|
||||
_hide_settings = False
|
||||
|
||||
hideSettingsChanged = pyqtSignal(bool)
|
||||
|
||||
@pyqtSlot(bool)
|
||||
def setHideSettings(self, hide):
|
||||
self._hide_settings = hide
|
||||
self.hideSettingsChanged.emit(hide)
|
||||
|
||||
@pyqtProperty(bool, fset=setHideSettings, notify=hideSettingsChanged)
|
||||
def hideSettings(self):
|
||||
return self._hide_settings
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue