malcontent-client: Fix typo in use of flags

This doesn’t actually change the behaviour, since the two types are
equivalent.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-01-15 12:13:25 +00:00
parent 983e3bfa39
commit 305129589e
1 changed files with 2 additions and 2 deletions

View File

@ -66,9 +66,9 @@ def __set_app_filter(user_id, app_filter, interactive):
If `interactive` is `True`, interactive polkit authorisation dialogues will If `interactive` is `True`, interactive polkit authorisation dialogues will
be allowed. An exception will be raised on failure.""" be allowed. An exception will be raised on failure."""
if interactive: if interactive:
flags = Malcontent.GetAppFilterFlags.INTERACTIVE flags = Malcontent.SetAppFilterFlags.INTERACTIVE
else: else:
flags = Malcontent.GetAppFilterFlags.NONE flags = Malcontent.SetAppFilterFlags.NONE
connection = Gio.bus_get_sync(Gio.BusType.SYSTEM) connection = Gio.bus_get_sync(Gio.BusType.SYSTEM)
manager = Malcontent.Manager.new(connection) manager = Malcontent.Manager.new(connection)