Remove write to common.dat

This commit is contained in:
SIrHrVedel 2026-04-27 16:38:11 +02:00
parent 27a48b644d
commit 88f2e06328
2 changed files with 0 additions and 10 deletions

View File

@ -1277,12 +1277,6 @@ void GeneralSettings2::StoreConfig()
// account
config.account.m_persistent_id = GetSelectedAccountPersistentId();
{
std::vector<uint32> orderedIds;
for (const auto& acc : Account::GetAccounts())
orderedIds.push_back(acc.GetPersistentId());
Account::WriteCommonDat(orderedIds);
}
// debug
config.crash_dump = (CrashDump)m_crash_dump->GetSelection();

View File

@ -957,10 +957,6 @@ void MainWindow::OnAccountSelect(wxCommandEvent& event)
auto& config = GetConfig();
config.account.m_persistent_id = accounts[index].GetPersistentId();
// config.account.online_enabled.value = false; // reset online for safety
std::vector<uint32> orderedIds;
for (const auto& acc : accounts)
orderedIds.push_back(acc.GetPersistentId());
Account::WriteCommonDat(orderedIds);
GetConfigHandle().Save();
}