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.
This commit is contained in:
zandimna 2018-11-12 20:23:47 +08:00 committed by GitHub
parent a9f9df5109
commit 3b70c6ff26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()