From 88f2e06328fdc79d65f34b6930c51d25af6757c4 Mon Sep 17 00:00:00 2001 From: SIrHrVedel <38987957+SirHrVedel@users.noreply.github.com> Date: Mon, 27 Apr 2026 16:38:11 +0200 Subject: [PATCH] Remove write to common.dat --- src/gui/wxgui/GeneralSettings2.cpp | 6 ------ src/gui/wxgui/MainWindow.cpp | 4 ---- 2 files changed, 10 deletions(-) diff --git a/src/gui/wxgui/GeneralSettings2.cpp b/src/gui/wxgui/GeneralSettings2.cpp index b78cb03f..003bd130 100644 --- a/src/gui/wxgui/GeneralSettings2.cpp +++ b/src/gui/wxgui/GeneralSettings2.cpp @@ -1277,12 +1277,6 @@ void GeneralSettings2::StoreConfig() // account config.account.m_persistent_id = GetSelectedAccountPersistentId(); - { - std::vector orderedIds; - for (const auto& acc : Account::GetAccounts()) - orderedIds.push_back(acc.GetPersistentId()); - Account::WriteCommonDat(orderedIds); - } // debug config.crash_dump = (CrashDump)m_crash_dump->GetSelection(); diff --git a/src/gui/wxgui/MainWindow.cpp b/src/gui/wxgui/MainWindow.cpp index 2f881110..4ef4fe08 100644 --- a/src/gui/wxgui/MainWindow.cpp +++ b/src/gui/wxgui/MainWindow.cpp @@ -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 orderedIds; - for (const auto& acc : accounts) - orderedIds.push_back(acc.GetPersistentId()); - Account::WriteCommonDat(orderedIds); GetConfigHandle().Save(); }