mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-04-20 02:11:45 -04:00
FIX: pyside2 support reading config
This commit is contained in:
parent
3b4551153f
commit
833aa3bbc6
@ -195,7 +195,7 @@ def main():
|
||||
def read_settings(window):
|
||||
"""Read and set window settings from a file."""
|
||||
settings = QSettings('QDarkStyle', 'QDarkStyle Example')
|
||||
if args.qt_from == 'pyside':
|
||||
if args.qt_from == 'pyside' or args.qt_from == 'pyside2':
|
||||
pos = settings.value('pos', window.pos())
|
||||
size = settings.value('size', window.size())
|
||||
state = settings.value('state', window.saveState())
|
||||
|
Loading…
Reference in New Issue
Block a user