mirror of
https://github.com/pulb/mailnag.git
synced 2026-08-26 20:06:10 +02:00
renamed method
This commit is contained in:
@@ -182,7 +182,7 @@ class ConfigWindow:
|
||||
else: self._delete_autostart()
|
||||
|
||||
|
||||
def _show_yesno_dialog(self, text):
|
||||
def _show_confirmation_dialog(self, text):
|
||||
message = Gtk.MessageDialog(self._window, Gtk.DialogFlags.MODAL, \
|
||||
Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, text)
|
||||
resp = message.run()
|
||||
@@ -309,7 +309,7 @@ class ConfigWindow:
|
||||
def _on_btn_remove_account_clicked(self, widget):
|
||||
acc, model, iter = self._get_selected_account()
|
||||
if iter != None:
|
||||
if self._show_yesno_dialog(_('Delete this account:') + \
|
||||
if self._show_confirmation_dialog(_('Delete this account:') + \
|
||||
'\n\n' + acc.name):
|
||||
|
||||
# select prev/next account
|
||||
|
||||
Reference in New Issue
Block a user