Merge branch 'unread' into msys

This commit is contained in:
ouwou committed 2022-01-08 20:11:52 -05:00
commit f31d431517
22 files changed
+1067 -61

No files matched your search

+5 -1
View File
@@ -411,7 +411,11 @@ void Abaddon::SaveState() {
}
void Abaddon::LoadState() {
if (!GetSettings().SaveState) return;
if (!GetSettings().SaveState) {
// call with empty data to purge the temporary table
m_main_window->GetChannelList()->UseExpansionState({});
return;
}
const auto data = ReadWholeFile(GetStateCachePath("/state.json"));
if (data.empty()) return;