Skip to content

fix: handle aboutToQuit() - #6159

Merged
pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/about-to-quit
Apr 19, 2025
Merged

pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/about-to-quit

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Apr 18, 2025

Copy link
Copy Markdown
Contributor

In an attempt to solve #6157, I added a handler for aboutToQuit - specifically because this is called when the application is shut down by Windows (source).

If we do this, we shouldn't save afterward - aboutToQuit will be called (immediately) before Application::run returns. I added disableSave to try to avoid saving after we exit.

@pajlada

pajlada commented Apr 19, 2025

Copy link
Copy Markdown
Member

Seems like the aboutToQuit signal is the correct place to do this type of thing, good catch

https://doc.qt.io/qt-6/qapplication.html#exec

@pajlada
pajlada merged commit 52067d0 into Chatterino:master Apr 19, 2025
babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
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