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:
Vit Mojzis 2016-11-29 10:09:00 +01:00 committed by Stephen Smalley
parent ab27085099
commit c034875c14

View file

@ -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())