From b8a3518f068e70480fd963efa8151d4657abece7 Mon Sep 17 00:00:00 2001 From: lilinjie Date: Tue, 7 Mar 2023 13:45:22 +0800 Subject: [PATCH] fix 'is_active' does not work --- fix-is-active-does-not-work.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fix-is-active-does-not-work.patch diff --git a/fix-is-active-does-not-work.patch b/fix-is-active-does-not-work.patch new file mode 100644 index 0000000..98459dc --- /dev/null +++ b/fix-is-active-does-not-work.patch @@ -0,0 +1,25 @@ +From f5a69ca8a7b602fdb79ae56425a2e36d6fb501a4 Mon Sep 17 00:00:00 2001 +From: lilinjie +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 + -- Gitee