app: Add locked flag

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-12-30 16:02:54 -08:00 committed by Veiko Aasa
parent 734e4fea9a
commit ec75790c00
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -23,12 +23,19 @@ class App:
the user. Enable/disable button for this app will not be shown. Default
value is True, so the app can be disabled.
'locked' is a boolean indicating whether the user can perform operations on
the app. This flag is currently set during backup and restore operations
but UI changes are currently not implemented.
"""
app_id = None
can_be_disabled = True
locked = False # Whether user interaction with the app is allowed.
# XXX: Lockdown the application UI by implementing a middleware
_all_apps = collections.OrderedDict()
def __init__(self):