!39 fix 'is_active' does not work

From: @lilinjie-one 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2023-03-09 01:13:49 +00:00 committed by Gitee
commit 6c854b5c9a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -0,0 +1,25 @@
From f5a69ca8a7b602fdb79ae56425a2e36d6fb501a4 Mon Sep 17 00:00:00 2001
From: lilinjie <lilinjie@uniontech.com>
Date: Tue, 7 Mar 2023 13:38:46 +0800
Subject: [PATCH] fix 'is_active' does not work
---
tuned-gui.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuned-gui.py b/tuned-gui.py
index 3953f82..746789b 100755
--- a/tuned-gui.py
+++ b/tuned-gui.py
@@ -362,7 +362,7 @@ class Base(object):
if profile is None:
self.error_dialog('No profile selected!', '')
return
- if self._gobj('windowProfileEditor').is_active():
+ if self._gobj('windowProfileEditor').is_visible():
self.error_dialog('You are ediding '
+ self.editing_profile_name
+ ' profile.',
--
2.31.1