Skip to content

Commit

Permalink
fix #734
Browse files Browse the repository at this point in the history
easy fix - just do restore() (if needed) immediately after fontsChanged()
  • Loading branch information
caver456 committed Mar 3, 2024
1 parent c05cd4a commit e593a7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions radiolog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,9 +1327,6 @@ def __init__(self,parent):
# the same flags don't do the trick inside the QMessageBox constructor for whatever reason
self.newEntryWindowHiddenPopup.setWindowFlags(Qt.Dialog|Qt.CustomizeWindowHint|Qt.WindowTitleHint|Qt.MSWindowsFixedSizeDialogHint|Qt.WindowStaysOnTopHint)

if restoreFlag:
self.restore()

# make sure x/y/w/h from resource file will fit on the available display
d=QApplication.desktop()
if (self.x+self.w > d.width()) or (self.y+self.h > d.height()):
Expand All @@ -1348,6 +1345,10 @@ def __init__(self,parent):
self.clueLogDialog.setGeometry(int(self.clueLog_x),int(self.clueLog_y),int(self.clueLog_w),int(self.clueLog_h))
self.fontsChanged()

#734 move restore to just after fontsChanged, which defines font size variables
if restoreFlag:
self.restore()

self.previousActiveWindowName='None'

self.ui.timeoutLabel.setText("TIMEOUT:\n"+timeoutDisplayList[self.optionsDialog.ui.timeoutField.value()][0])
Expand Down

0 comments on commit e593a7e

Please sign in to comment.