mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Merge pull request #318 from wgreven/single-config-file-for-colors
Allow configuring Anki's color scheme using a single config file on Linux
This commit is contained in:
commit
4c6b608736
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