diff --git a/client/cs_prefs.cpp b/client/cs_prefs.cpp index bc33d3a2dd..8a6fc5efb2 100644 --- a/client/cs_prefs.cpp +++ b/client/cs_prefs.cpp @@ -155,6 +155,10 @@ int CLIENT_STATE::check_suspend_processing() { } } } + + if (active_tasks.exclusive_app_running) { + return SUSPEND_REASON_EXCLUSIVE_APP_RUNNING; + } return 0; } diff --git a/clientgui/ViewWork.cpp b/clientgui/ViewWork.cpp index f9fa74fd4d..144eb754c9 100644 --- a/clientgui/ViewWork.cpp +++ b/clientgui/ViewWork.cpp @@ -1007,7 +1007,7 @@ void CViewWork::GetDocStatus(wxInt32 item, wxString& strBuffer) const { if (status.task_suspend_reason & SUSPEND_REASON_DISK_SIZE) { strBuffer += _(" - need disk space"); } - if (status.task_suspend_reason & SUSPEND_REASON_EXCLUSIVE_APP) { + if (status.task_suspend_reason & SUSPEND_REASON_EXCLUSIVE_APP_RUNNING) { strBuffer += _(" - an exclusive app is running"); } } else if (result->active_task) { diff --git a/lib/common_defs.h b/lib/common_defs.h index 1911e6ccaa..2f045a1362 100644 --- a/lib/common_defs.h +++ b/lib/common_defs.h @@ -110,7 +110,7 @@ enum SUSPEND_REASON { SUSPEND_REASON_CPU_USAGE_LIMIT = 64, SUSPEND_REASON_NO_RECENT_INPUT = 128, SUSPEND_REASON_INITIAL_DELAY = 256, - SUSPEND_REASON_EXCLUSIVE_APP = 512, + SUSPEND_REASON_EXCLUSIVE_APP_RUNNING = 512, }; // States of a result on a client.