- ensured that on Graceful Exit (CTRL+ALT+X key combo) if using Progressive Plotting, the eventual residual plotted lines are deleted. This apply for Tool NCC and Tool Paint

This commit is contained in:
Marius Stanciu
2020-04-25 06:55:41 +03:00
committed by Marius
parent a76a7d29da
commit 0295950000
4 changed files with 66 additions and 46 deletions

View File

@@ -253,6 +253,11 @@ class App(QtCore.QObject):
# close app signal
close_app_signal = pyqtSignal()
# will perform the cleanup operation after a Graceful Exit
# usefull for the NCC Tool and Paint Tool where some progressive plotting might leave
# graphic residues behind
cleanup = pyqtSignal()
def __init__(self, user_defaults=True):
"""
Starts the application.
@@ -7781,6 +7786,7 @@ class App(QtCore.QObject):
if self.abort_flag is False:
self.inform.emit(_("Aborting. The current task will be gracefully closed as soon as possible..."))
self.abort_flag = True
self.cleanup.emit()
def app_is_idle(self):
if self.abort_flag: