-
Notifications
You must be signed in to change notification settings - Fork 109
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
Saving history and favorites on unusual situations (e.g. cutting off of power cord) #1375
Comments
I guess the reason is that when restart the os ,the gd got no chance to save the config file. |
Is there any way to overcome this? |
Can you test this PR #1389 |
I built from that branch with cmake |
Thanks for you effort . gd-ng need a chance to save the config . Has no clue right now. |
I found the latest favorite words can only be archived to local config file <favorites.txt> when the app is properly exited. Is it possilbe to synchronize the local config file with the cache/swap file loaded by the flatpak when a new favorite word is added? Environment: Ubuntu 22.04 |
Saving history/favorite at interval already exists goldendict-ng/src/ui/mainwindow.cc Line 886 in d5037de
We should set an initial value of maybe 15 mins. I check how Qt6's timer is implemented.
The |
Describe the bug
GD can't save the latest state of History and Favorites on Arch Linux if GD is in background and you initiate a restart or shutdown.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should save them.
OS and software versions
Goldendict-ng 24.01.22 at 2024-01-23T17:36:50
Qt 6.6.1 GCC 13.2.1 20230801 arch linux 6.7.0-arch3-1 x86_64-little_endian-lp64
Flags:USE_XAPIAN MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT
The text was updated successfully, but these errors were encountered: