Reduced redundancy

This commit is contained in:
SimplifiedPrivacy 2026-08-23 16:55:40 -04:00
parent ba816a3093
commit cf8f7ce43f

View file

@ -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: