akiraux / Akira

Native Linux App for UI and UX Design built in Vala and GTK
GNU General Public License v3.0
5.25k stars 202 forks source link

Fix application not properly activating if opened via saved file #590

Closed Alecaddd closed 3 years ago

Alecaddd commented 3 years ago

Summary / How this PR fixes the problem?

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

  1. Create a file, save it, and close Akira.
  2. Double click on the saved file.
  3. Confirm the theme and settings are working properly.
  4. This can be verified only on a non-elementary system.