Add prompts and notifications for deleting items and clearing lists

- Includes search history, watch history, watch later, bookmarks
This commit is contained in:
MoojMidge 2024-11-07 19:20:30 +11:00
parent 2c33fa0d0b
commit 187661799b
13 changed files with 189 additions and 98 deletions

View file

@ -245,7 +245,7 @@ def _maintenance_actions(context, action, params):
if ui.on_clear_content(localize('maintenance.{0}'.format(target))):
targets[target]().clear()
ui.show_notification(localize('succeeded'))
ui.show_notification(localize('completed'))
elif action == 'refresh':
targets = {
@ -256,7 +256,7 @@ def _maintenance_actions(context, action, params):
return
if target == 'settings_xml' and ui.on_yes_no_input(
context.get_name(), localize('refresh.settings.confirm')
context.get_name(), localize('refresh.settings.check')
):
if not context.get_system_version().compatible(20):
ui.show_notification(localize('failed'))
@ -419,7 +419,7 @@ def _user_actions(context, action, params):
username = access_manager.get_username(user)
if ui.on_remove_content(username):
access_manager.remove_user(user)
ui.show_notification(localize('removed') % '"%s"' % username,
ui.show_notification(localize('removed') % username,
localize('remove'))
if user == 0:
access_manager.add_user(username=localize('user.default'),