Blob Blame History Raw
From c503d3ec5022de8d8aff66e4ac2fabe73bf77a9d Mon Sep 17 00:00:00 2001
From: lilinjie <lilinjie@uniontech.com>
Date: Thu, 9 Feb 2023 10:15:51 +0800
Subject: [PATCH] fix 'is_active' does not work

Signed-off-by: lilinjie <lilinjie@uniontech.com>
---
 tuned-gui.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tuned-gui.py b/tuned-gui.py
index 3159a96..b32cf64 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 editing '
 								  + self.editing_profile_name
 								  + ' profile.',
-- 
2.39.1