Skip to content
Commit 1cbfa33b authored by Wolthera van Hövell's avatar Wolthera van Hövell
Browse files

Fix saving palette on quit, specifically avoiding the potential crash.

The save-with-user-input flow requires a widget to parent it's potential
messages and other widgets to, but when we're closing the application
no such potential widgets exists anymore, leading to a crash.

Therefore, we'll just save the palette regularly, but only if it already
has a resource-version. I don't think it's currently possible to have
a palette without resource version, so that should suffice.

This also seems to fix actually saving the resource upon close, which was
the original bug to begin with.

BUG:444309


(cherry picked from commit fcbb682c)
parent 921068f4
Loading
Loading
Loading
Pipeline #100930 skipped with stage
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment