From cf8f7ce43f7cf6e1a2c8f2cfa55cba645dd9f258 Mon Sep 17 00:00:00 2001 From: SimplifiedPrivacy Date: Sun, 23 Aug 2026 16:55:40 -0400 Subject: [PATCH] Reduced redundancy --- gui/v2/workers/worker_thread.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gui/v2/workers/worker_thread.py b/gui/v2/workers/worker_thread.py index e0d1eab..6092659 100755 --- a/gui/v2/workers/worker_thread.py +++ b/gui/v2/workers/worker_thread.py @@ -179,11 +179,7 @@ class WorkerThread(QThread): try: for profile_id in self.profile_data: profile = ProfileController.get(int(profile_id)) - if isinstance(profile, SessionProfile): - self._disable_profile(profile) - for profile_id in self.profile_data: - profile = ProfileController.get(int(profile_id)) - if isinstance(profile, SystemProfile): + if isinstance(profile, SessionProfile) or isinstance(profile, SystemProfile): self._disable_profile(profile) self.text_output.emit("All profiles were successfully disabled") except SudoScript as e: