Minor fixes to dialogs, partially related to macOS
This commit is contained in:
@@ -915,6 +915,9 @@ class GuiBuildNovel(QDialog):
|
||||
if theStatus:
|
||||
self.textFont.setText(theFont.family())
|
||||
self.textSize.setValue(theFont.pointSize())
|
||||
|
||||
self.raise_() # Move the dialog to front (fixes a bug on macOS)
|
||||
|
||||
return
|
||||
|
||||
def _loadCache(self):
|
||||
|
||||
@@ -340,7 +340,7 @@ class GuiConfigEditGeneralTab(QWidget):
|
||||
dlgOpt = QFileDialog.Options()
|
||||
dlgOpt |= QFileDialog.ShowDirsOnly
|
||||
dlgOpt |= QFileDialog.DontUseNativeDialog
|
||||
newDir = QFileDialog.getExistingDirectory(
|
||||
newDir = QFileDialog.getExistingDirectory(
|
||||
self, "Backup Directory", currDir, options=dlgOpt
|
||||
)
|
||||
if newDir:
|
||||
|
||||
@@ -337,7 +337,7 @@ class GuiWritingStats(QDialog):
|
||||
saveTo = QFileDialog.getSaveFileName(
|
||||
self, "Save Document As", savePath, options=dlgOpt
|
||||
)
|
||||
if saveTo:
|
||||
if saveTo[0]:
|
||||
savePath = saveTo[0]
|
||||
else:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user