mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-08 21:57:34 +00:00
policycoreutils/sepolicy/gui: fix current selinux state radiobutton
Radiobutton was always set to "Permissive" and couldn't be switched. Update radiobutton together with status text in bottom left corner. Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
This commit is contained in:
parent
ab27085099
commit
c034875c14
@ -2609,9 +2609,10 @@ class SELinuxGui():
|
||||
def set_enforce_text(self, value):
|
||||
if value:
|
||||
self.status_bar.push(self.context_id, _("System Status: Enforcing"))
|
||||
self.current_status_enforcing.set_active(True)
|
||||
else:
|
||||
self.status_bar.push(self.context_id, _("System Status: Permissive"))
|
||||
self.current_status_permissive.set_active(True)
|
||||
self.current_status_permissive.set_active(True)
|
||||
|
||||
def set_enforce(self, button):
|
||||
self.dbus.setenforce(button.get_active())
|
||||
|
Loading…
Reference in New Issue
Block a user