Skip to content

Commit

Permalink
reformat gui_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Oct 15, 2023
1 parent 10a63d1 commit 62ae8df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions feeluown/app/gui_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def __init__(self, *args, **kwargs):
# I don't know if this setting brings other benefits or not.
# https://github.com/pyfa-org/Pyfa/issues/1607#issuecomment-392099878
QApplication.setDesktopFileName('FeelUOwn')
QApplication.instance().setQuitOnLastWindowClosed(
not config.ENABLE_TRAY)
QApplication.instance().setQuitOnLastWindowClosed(not config.ENABLE_TRAY)
QApplication.instance().setApplicationName('FeelUOwn')

if sys.platform == 'win32':
Expand All @@ -44,8 +43,7 @@ def __init__(self, *args, **kwargs):
# "Segoe UI Symbol" is used to render charactor symbols.
# "Microsoft Yahei" is used to render chinese (and english).
# Choose a default sans-serif font when the first two fonts do not work,
font.setFamilies(
['Segoe UI Symbol', 'Microsoft YaHei', 'sans-serif'])
font.setFamilies(['Segoe UI Symbol', 'Microsoft YaHei', 'sans-serif'])

# When a HiDPI screen is used, users need to set both font DPI and
# screen scale factor to make it working properly when pointSize is used.
Expand Down

0 comments on commit 62ae8df

Please sign in to comment.