mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Set applicationName and desktopFileName before instantiating the application.
When these are set after instantiating the application Anki will load both $XDG CONFIG HOME/.config/Ankirc and $XDG CONFIG HOME/.config/ankirc.
This commit is contained in:
parent
79a4f76422
commit
9b10e3f43e
1 changed files with 1 additions and 1 deletions
|
@ -310,9 +310,9 @@ def _run(argv=None, exec=True):
|
||||||
QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
|
QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
|
||||||
|
|
||||||
# create the app
|
# create the app
|
||||||
app = AnkiApp(argv)
|
|
||||||
QCoreApplication.setApplicationName("Anki")
|
QCoreApplication.setApplicationName("Anki")
|
||||||
QGuiApplication.setDesktopFileName("anki.desktop")
|
QGuiApplication.setDesktopFileName("anki.desktop")
|
||||||
|
app = AnkiApp(argv)
|
||||||
if app.secondInstance():
|
if app.secondInstance():
|
||||||
# we've signaled the primary instance, so we should close
|
# we've signaled the primary instance, so we should close
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue