!39 fix 'is_active' does not work
From: @lilinjie-one Reviewed-by: @liqingqing_1229 Signed-off-by: @liqingqing_1229
This commit is contained in:
commit
6c854b5c9a
25
fix-is-active-does-not-work.patch
Normal file
25
fix-is-active-does-not-work.patch
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user