mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Remove deprecated user management code
This commit is contained in:
parent
86ddc00bb1
commit
5b0dac797c
4 changed files with 7 additions and 24 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue