Skip to content

fix: synfig studio was not saving synfigapp settings on quit - #2751

Merged
ice0 merged 1 commit into
synfig:masterfrom
rodolforg:fix-missing-shutdown
Jul 22, 2022
Merged

ice0 merged 1 commit into
synfig:masterfrom
rodolforg:fix-missing-shutdown

Conversation

@rodolforg

@rodolforg rodolforg commented Jul 16, 2022 •

Copy link
Copy Markdown
Contributor

Steps to reproduce the problem:

  1. Select Bline Tool
  2. Change a parameter in Tool Options Panel (e.g. Opacity or Line Width)
  3. Restart Synfig Studio
  4. Select Bline Tool and see the change was not saved.

Reason:
Since #2497, we finally use Gtk::Application as base class for App.
App is destructed before MainWindow is closed (basically at start).
So, stuff done on quitting before merging #2497 was not done on the right time now.

As signal-shutdown is only called in primary instance of Gtk::Application,
it's the proper moment to delete and finish stuff on application exit.

ice0
ice0 previously approved these changes Jul 16, 2022
Comment thread synfig-studio/src/gui/app.cpp Resolved
Steps to reproduce the problem:

1. Select Bline Tool
2. Change a parameter in Tool Options Panel (e.g. Opacity or Line Width)
3. Restart Synfig Studio
4. Select Bline Tool and see the change was not saved.

Reason:
Since synfig#2497, we finally use Gtk::Application as base class for `App`.
`App` is destructed before `MainWindow` is closed (basically at start).
So, stuff done on quitting before merging synfig#2497 was not done on the right time now.

As `signal-shutdown` is only called in primary instance of Gtk::Application,
it's the proper moment to delete and finish stuff on application exit.
@rodolforg
rodolforg force-pushed the fix-missing-shutdown branch from 603ef9b to 42f459f Compare July 16, 2022 12:26
@rodolforg rodolforg changed the title fix: synfig studio was not saving settings on quit fix: synfig studio was not saving synfigapp settings on quit Jul 16, 2022
@ice0
ice0 merged commit 6fb0596 into synfig:master Jul 22, 2022
@ice0

ice0 commented Jul 22, 2022

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@rodolforg
rodolforg deleted the fix-missing-shutdown branch July 22, 2022 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants