Skip to content

Commit

Permalink
Fixed a bug in the Update function. (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolilad authored Mar 29, 2024
1 parent 9f8a1ad commit 804028d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SettingsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ DWORD WINAPI SettingsManager::Update(LPVOID lpParam)
m_app_settings = remote_app_settings;
m_app_settings.at(L"Latest Release Date") = release_info.at(L"published_at").get_string();

m_app_settings.at(L"Latest Release Date").get_to(m_latest_release_date);
m_app_settings.at(L"Block List").get_to(m_block_list);
m_app_settings.at(L"Zip Reader").get_to(m_zip_reader);
m_app_settings.at(L"Developer").get_to(m_developer);
m_app_settings.at(L"Cef Offsets").get_to(m_cef_offsets);

if (!Utils::WriteFile(m_app_settings_file, m_app_settings.dump(4))) {
Log(Utils::FormatString(L"Failed to open settings file: {}", m_app_settings_file), LogLevel::Error);
}
Expand Down

0 comments on commit 804028d

Please sign in to comment.