forked from Support/sp-hydra-veil-gui
Reduced redundancy
This commit is contained in:
parent
ba816a3093
commit
cf8f7ce43f
1 changed files with 1 additions and 5 deletions
|
|
@ -179,11 +179,7 @@ class WorkerThread(QThread):
|
||||||
try:
|
try:
|
||||||
for profile_id in self.profile_data:
|
for profile_id in self.profile_data:
|
||||||
profile = ProfileController.get(int(profile_id))
|
profile = ProfileController.get(int(profile_id))
|
||||||
if isinstance(profile, SessionProfile):
|
if isinstance(profile, SessionProfile) or isinstance(profile, SystemProfile):
|
||||||
self._disable_profile(profile)
|
|
||||||
for profile_id in self.profile_data:
|
|
||||||
profile = ProfileController.get(int(profile_id))
|
|
||||||
if isinstance(profile, SystemProfile):
|
|
||||||
self._disable_profile(profile)
|
self._disable_profile(profile)
|
||||||
self.text_output.emit("All profiles were successfully disabled")
|
self.text_output.emit("All profiles were successfully disabled")
|
||||||
except SudoScript as e:
|
except SudoScript as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue