cache: save disk cache index on a regular interval in case of crashing
DiskManager tries to keep track of all files made across sessions in an index, but the index was only saved on close. This meant if the program crashed (not an uncommon occurrence at the moment), it would "forget" about any files it had made that session.
This commit is contained in:
@@ -67,6 +67,7 @@ void Config::SetDefaults()
|
||||
SetEntryInternal(QStringLiteral("HoverFocus"), NodeParam::kBoolean, false);
|
||||
SetEntryInternal(QStringLiteral("AudioScrubbing"), NodeParam::kBoolean, true);
|
||||
SetEntryInternal(QStringLiteral("AutorecoveryInterval"), NodeParam::kInt, 1);
|
||||
SetEntryInternal(QStringLiteral("DiskCacheSaveInterval"), NodeParam::kInt, 10000);
|
||||
SetEntryInternal(QStringLiteral("Language"), NodeParam::kString, QLocale::system().name());
|
||||
SetEntryInternal(QStringLiteral("ScrollZooms"), NodeParam::kBoolean, false);
|
||||
SetEntryInternal(QStringLiteral("EnableSeekToImport"), NodeParam::kBoolean, false);
|
||||
|
||||
Reference in New Issue
Block a user