new sheet on open
g33kdad opened this issue · 7 comments
Title: ThiefMD doesnt respect the "start with new empty sheet on launch" preference setting
Comment:
ThiefMD opens with the last edited sheet open
Using: Flatpak and RPM
Desktop Environment: GNOME
OS: OpenSuse Tumbleweed
I am using/not using Wayland: this occurs in both X.org and Wayland
Steps:
1. Open ThiefMD
2. Set "start with new empty sheet on launch" preference
3. open sheet and edit
4. close ThiefMD
5. open ThiefMD again, expecting a blank page; find last edited document still open
Thanks for reporting this, I'll take a look.
I would like to add, I have tried the flatpak on Fedora SilverBlue 35, and the problem is present there, too.
Please feel free to let me know if I can help by providing logs or debug outputs or anything.
Cheers,
M
Can you share a screenshot of the Editor Preferences page? Are the folders in the library in the /home/user directory, or on another disk?
For capturing logs, you can run:
G_MESSAGES_DEBUG=all com.github.kmwallio.thiefmd >output.log 2>&1
or
G_MESSAGES_DEBUG=all flatpak run com.github.kmwallio.thiefmd >output.log 2>&1
I think I may have found the issue, and will hopefully have a fix out over the weekend. There's a chance we do a redraw where the setting isn't checked (the redraw loads the last known file), but I'm unable to repro it myself to confirm.
I will try to get those things this weekend.
Thanks! No need to rush. Trying to step through this highlighted some logic and timing changes I should probably adjust.