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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue