cherrytree
cherrytree copied to clipboard
Warning when shutting down with unsaved changes
Most programs will usually interrupt if there is a shutdown with unsaved changes. CherryTree doesn't do this - it discards the changes silently
@chanclr, you can make CT autosave on exit. Under File/Preferences/Preferences/Miscellaneous, check the box that says "Autosave on exit"
BR, Sisyfos3
That only saves if I close CT. I meant if I shutdown Windows
I'm surprised because I worked on this issue ensuring a shutdown was being captured in cherrytree and was saving the changes before exiting. I assume you are using 0.99.48 on Windows 10? Can you try on your system with a small test document non password protected and a little change? (I need to understand if cherrytree is not detecting the shutdown at all or it is just too slow to shutdown). Also please enable the debug log in the preferences and attach it to this issue after you reproduce the reboot without save
Yes those are the versions. The first one is normal close app. The second is shutdown. And the third is restart. I also tested the non-portable version, and it had same results. When I shutdown I can see that the taskbar icon flash orange, so it seems to detect it. But I couldn't see any window/alert popping up, though that might be because it was too fast.
[2022-07-22 15:50:30.678] [gtk] [critical] Class::register_derived_type(): base_query.type_name is NULL.
[2022-07-22 15:50:30.848] [ ] [debug] set TEXMFROOT=C:/cherrytree_0.99.48.1_win64_portable/mingw64/share OK
[2022-07-22 15:50:30.849] [ ] [debug] C:\cherrytree_0.99.48.1_win64_portable\config.cfg parsed
[2022-07-22 15:50:31.499] [ ] [debug] autosave is started
[2022-07-22 15:50:32.130] [ ] [debug] Node name: test
[2022-07-22 15:50:53.373] [gtk] [critical] Class::register_derived_type(): base_query.type_name is NULL.
[2022-07-22 15:50:53.547] [ ] [debug] set TEXMFROOT=C:/cherrytree_0.99.48.1_win64_portable/mingw64/share OK
[2022-07-22 15:50:53.549] [ ] [debug] C:\cherrytree_0.99.48.1_win64_portable\config.cfg parsed
[2022-07-22 15:50:54.211] [ ] [debug] autosave is started
[2022-07-22 15:50:54.858] [ ] [debug] Node name: test
[2022-07-22 15:50:57.118] [ ] [debug] shift images in MenuBar/context menu
[2022-07-22 15:52:18.823] [gtk] [critical] Class::register_derived_type(): base_query.type_name is NULL.
[2022-07-22 15:52:19.024] [ ] [debug] set TEXMFROOT=C:/cherrytree_0.99.48.1_win64_portable/mingw64/share OK
[2022-07-22 15:52:19.030] [ ] [debug] C:\cherrytree_0.99.48.1_win64_portable\config.cfg parsed
[2022-07-22 15:52:20.058] [ ] [debug] autosave is started
[2022-07-22 15:52:21.997] [ ] [debug] Node name: test
[2022-07-22 15:53:05.407] [ ] [debug] shift images in MenuBar/context menu
[2022-07-22 15:53:20.128] [ ] [debug] autosave: no needs to save file