FIX: avoid multiple unsaved dialog

Change-Id: Ibcfde4033de8f75e65ac868c62de74e2187d0dde
This commit is contained in:
chunmao.guo 2023-06-07 14:03:52 +08:00 committed by Lane.Wei
parent fa91174af2
commit 49bbf6bdbb
1 changed files with 1 additions and 1 deletions

View File

@ -3712,7 +3712,7 @@ void GUI_App::request_user_login(int online_login)
void GUI_App::request_user_logout()
{
if (m_agent) {
if (m_agent && m_agent->is_user_login()) {
bool transfer_preset_changes = false;
wxString header = _L("Some presets are modified.") + "\n" +
_L("You can keep the modifield presets to the new project, discard or save changes as new presets.");