Remove deprecated user management code

This commit is contained in:
Megamouse 2021-04-10 11:11:08 +02:00
parent 86ddc00bb1
commit 5b0dac797c
4 changed files with 7 additions and 24 deletions

View file

@ -88,19 +88,8 @@ void user_manager_dialog::Init()
vbox_main->addLayout(hbox_buttons);
setLayout(vbox_main);
m_active_user = m_persistent_settings->GetValue(gui::persistent::active_user).toString().toStdString();
// Handle deprecated value (before August 2nd 2020)
if (m_active_user.empty())
{
m_active_user = m_gui_settings->GetValue(gui::um_active_user).toString().toStdString();
m_gui_settings->RemoveValue(gui::um_active_user);
if (!m_active_user.empty())
{
m_persistent_settings->SetValue(gui::persistent::active_user, qstr(m_active_user));
}
}
// Get the active user
m_active_user = m_persistent_settings->GetCurrentUser("00000001").toStdString();
// Get the real active user (might differ, set by cli)
if (m_active_user != Emu.GetUsr())