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(); }