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