feat: set the default history and favorite saving interval to 15 minutes
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run

This commit is contained in:
shenleban tongying 2024-10-10 00:20:02 -04:00
parent 08d31614ed
commit 95f3abadf5
2 changed files with 2 additions and 4 deletions

View file

@ -255,8 +255,6 @@ Preferences::Preferences():
maxStringsInHistory( 500 ), maxStringsInHistory( 500 ),
storeHistory( 1 ), storeHistory( 1 ),
alwaysExpandOptionalParts( true ), alwaysExpandOptionalParts( true ),
historyStoreInterval( 0 ),
favoritesStoreInterval( 0 ),
confirmFavoritesDeletion( true ), confirmFavoritesDeletion( true ),
collapseBigArticles( false ), collapseBigArticles( false ),
articleSizeLimit( 2000 ), articleSizeLimit( 2000 ),

View file

@ -391,8 +391,8 @@ struct Preferences
unsigned storeHistory; unsigned storeHistory;
bool alwaysExpandOptionalParts; bool alwaysExpandOptionalParts;
unsigned historyStoreInterval; unsigned historyStoreInterval = 15; // unit is minutes
unsigned favoritesStoreInterval; unsigned favoritesStoreInterval = 15;
bool confirmFavoritesDeletion; bool confirmFavoritesDeletion;