If Akira is opened via a saved .akira file, the activate () method doesn't run properly, preventing proper setup and theme loading.
This patch make sure to run that method on the proper occasion, and avoid it if the application is already active.
Steps to Test
Create a file, save it, and close Akira.
Double click on the saved file.
Confirm the theme and settings are working properly.
This can be verified only on a non-elementary system.
Summary / How this PR fixes the problem?
If Akira is opened via a saved
.akira
file, theactivate ()
method doesn't run properly, preventing proper setup and theme loading. This patch make sure to run that method on the proper occasion, and avoid it if the application is already active.Steps to Test