Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new sheet on open #159

Open
g33kdad opened this issue Dec 15, 2021 · 7 comments
Open

new sheet on open #159

g33kdad opened this issue Dec 15, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@g33kdad
Copy link

g33kdad commented Dec 15, 2021

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
@kmwallio kmwallio added the bug Something isn't working label Jan 3, 2022
@kmwallio
Copy link
Owner

kmwallio commented Jan 3, 2022

Thanks for reporting this, I'll take a look.

@g33kdad
Copy link
Author

g33kdad commented Jan 20, 2022

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

@kmwallio
Copy link
Owner

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.

@g33kdad
Copy link
Author

g33kdad commented Jan 21, 2022 via email

@kmwallio
Copy link
Owner

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.

@g33kdad
Copy link
Author

g33kdad commented Jan 23, 2022 via email

@g33kdad
Copy link
Author

g33kdad commented Jan 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants