From 1c7c5d79ff4ad808c77af8a6e6fffe20021ca2e5 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 23 Aug 2020 22:48:42 +0200 Subject: Do not queue settings dialogs if one is already shown --- ayatanawebmail/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ayatanawebmail') diff --git a/ayatanawebmail/common.py b/ayatanawebmail/common.py index 47a17e2..905ae74 100755 --- a/ayatanawebmail/common.py +++ b/ayatanawebmail/common.py @@ -39,7 +39,7 @@ def getDataPath(strPath): return strPath -def isRunning(): +def isRunning(sAppend = ''): nCount = 0 @@ -60,10 +60,10 @@ def isRunning(): for strCmd in lstCmdline: - if strCmd.endswith('ayatana-webmail'): + if strCmd.endswith('ayatana-webmail' + sAppend): nCount += 1 - elif strName.endswith('ayatana-webmail'): + elif strName.endswith('ayatana-webmail' + sAppend): nCount += 1 -- cgit v1.2.3