Commit 2d88f372 authored by Alexander's avatar Alexander

[stickers] Ask if the user really wants to reload all sticker packs

parent b6dd6219
......@@ -52,7 +52,16 @@ class StickersConfigDialog(GajimPluginConfigDialog):
self._ui.sticker_width.connect('value-changed', set_wrapper('STICKER_WIDTH'))
def on_sticker_packs_reload_clicked(self, button):
self.plugin.reload_sticker_packs()
def reload_sticker_packs():
self.plugin.reload_sticker_packs()
ConfirmationDialog(
_('Reload Sticker Packs'),
_('Are you sure you want to reload all sticker packs?'),
_('Depending on the amount of installed sticker packs this might take some time.'),
[DialogButton.make('Cancel'),
DialogButton.make('Accept',
callback=reload_sticker_packs)]).show()
def on_run(self):
# Update all config settings
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment