From 3b70c6ff264a79e46c23c8ed4dbb273cb12a1c8a Mon Sep 17 00:00:00 2001 From: zandimna Date: Mon, 12 Nov 2018 20:23:47 +0800 Subject: [PATCH] Change the order of elements on the window title The application name typically comes at the end of the title. As such, many tools grabs the final string as the application name. What Anki does currently causes the profile name to be grabbed, producing unexpected results. --- aqt/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/main.py b/aqt/main.py index df830587c..6d79c4134 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -248,7 +248,7 @@ close the profile or restart Anki.""")) restoreGeom(self, "mainWindow") restoreState(self, "mainWindow") # titlebar - self.setWindowTitle("Anki - " + self.pm.name) + self.setWindowTitle(self.pm.name + " - Anki") # show and raise window for osx self.show() self.activateWindow() @@ -1300,4 +1300,4 @@ Please ensure a profile is open and Anki is not busy, then try again."""), return '' % self.serverURL() def serverURL(self): - return "http://127.0.0.1:%d/" % self.mediaServer.getPort() \ No newline at end of file + return "http://127.0.0.1:%d/" % self.mediaServer.getPort()