- made sure that new message boxes are always centered on the app UI by setting correctly the parent
This commit is contained in:
@@ -2339,7 +2339,7 @@ class MainGUI(QtWidgets.QMainWindow):
|
||||
response = None
|
||||
bt_yes = None
|
||||
if forced_clear is False:
|
||||
msgbox = FCMessageBox()
|
||||
msgbox = FCMessageBox(parent=self)
|
||||
title = _("Clear GUI Settings")
|
||||
txt = _("Are you sure you want to delete the GUI Settings? \n")
|
||||
msgbox.setWindowTitle(title) # taskbar still shows it
|
||||
@@ -3413,7 +3413,7 @@ class MainGUI(QtWidgets.QMainWindow):
|
||||
'out of the first item. In the end press ~X~ key or\n'
|
||||
'the toolbar button.')
|
||||
|
||||
messagebox = FCMessageBox()
|
||||
messagebox = FCMessageBox(parent=self)
|
||||
title = _("Warning")
|
||||
messagebox.setWindowTitle(title) # taskbar still shows it
|
||||
messagebox.setWindowIcon(QtGui.QIcon(self.app.resource_location + '/flatcam_icon128.png'))
|
||||
@@ -3575,7 +3575,7 @@ class MainGUI(QtWidgets.QMainWindow):
|
||||
msg = _("Please select geometry items \n"
|
||||
"on which to perform Intersection Tool.")
|
||||
|
||||
messagebox = FCMessageBox()
|
||||
messagebox = FCMessageBox(parent=self)
|
||||
title = _("Warning")
|
||||
messagebox.setWindowTitle(title) # taskbar still shows it
|
||||
messagebox.setWindowIcon(QtGui.QIcon(self.app.resource_location + '/flatcam_icon128.png'))
|
||||
@@ -3624,7 +3624,7 @@ class MainGUI(QtWidgets.QMainWindow):
|
||||
"Please select geometry items \n"
|
||||
"on which to perform Substraction Tool.")
|
||||
|
||||
messagebox = FCMessageBox()
|
||||
messagebox = FCMessageBox(parent=self)
|
||||
title = _("Warning")
|
||||
messagebox.setWindowTitle(title) # taskbar still shows it
|
||||
messagebox.setWindowIcon(QtGui.QIcon(self.app.resource_location + '/flatcam_icon128.png'))
|
||||
@@ -3648,7 +3648,7 @@ class MainGUI(QtWidgets.QMainWindow):
|
||||
msg = _("Please select geometry items \n"
|
||||
"on which to perform union.")
|
||||
|
||||
messagebox = FCMessageBox()
|
||||
messagebox = FCMessageBox(parent=self)
|
||||
title = _("Warning")
|
||||
messagebox.setWindowTitle(title) # taskbar still shows it
|
||||
messagebox.setWindowIcon(QtGui.QIcon(self.app.resource_location + '/flatcam_icon128.png'))
|
||||
|
||||
@@ -1059,7 +1059,7 @@ class PreferencesUIManager:
|
||||
ge_val = self.ui.general_pref_form.general_app_group.ge_radio.get_value()
|
||||
|
||||
if theme_new_val != theme or ge != ge_val:
|
||||
msgbox = FCMessageBox()
|
||||
msgbox = FCMessageBox(parent=self.ui)
|
||||
title = _("Application will restart")
|
||||
txt = _("Are you sure you want to continue?")
|
||||
msgbox.setWindowTitle(title) # taskbar still shows it
|
||||
@@ -1283,7 +1283,7 @@ class PreferencesUIManager:
|
||||
|
||||
# Prompt user to save
|
||||
if self.preferences_changed_flag is True:
|
||||
msgbox = FCMessageBox(parent=parent)
|
||||
msgbox = FCMessageBox(parent=self.ui)
|
||||
title = _("Save Preferences")
|
||||
txt = _("One or more values are changed.\n"
|
||||
"Do you want to save?")
|
||||
|
||||
Reference in New Issue
Block a user