Call show() on new dialogs
- run() was removed from the dialog because it blocks
This commit is contained in:
parent
bbada2ecd4
commit
4c062bf93d
2 changed files with 3 additions and 3 deletions
|
@ -325,7 +325,7 @@ class Themes(Gtk.ApplicationWindow):
|
||||||
_('Do you want to permanently delete this theme?'),
|
_('Do you want to permanently delete this theme?'),
|
||||||
[DialogButton.make('Cancel'),
|
[DialogButton.make('Cancel'),
|
||||||
DialogButton.make('Delete', callback=_remove_theme)],
|
DialogButton.make('Delete', callback=_remove_theme)],
|
||||||
transient_for=self)
|
transient_for=self).show()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _on_destroy(*args):
|
def _on_destroy(*args):
|
||||||
|
|
|
@ -577,7 +577,7 @@ class HistoryManager:
|
||||||
paths_len, liststore[list_of_paths[0]][0]),
|
paths_len, liststore[list_of_paths[0]][0]),
|
||||||
[DialogButton.make('Cancel'),
|
[DialogButton.make('Cancel'),
|
||||||
DialogButton.make('Delete', callback=on_ok)],
|
DialogButton.make('Delete', callback=on_ok)],
|
||||||
transient_for=self._ui.history_manager_window)
|
transient_for=self._ui.history_manager_window).show()
|
||||||
|
|
||||||
def _delete_logs(self, liststore, list_of_paths):
|
def _delete_logs(self, liststore, list_of_paths):
|
||||||
paths_len = len(list_of_paths)
|
paths_len = len(list_of_paths)
|
||||||
|
@ -614,7 +614,7 @@ class HistoryManager:
|
||||||
paths_len),
|
paths_len),
|
||||||
[DialogButton.make('Cancel'),
|
[DialogButton.make('Cancel'),
|
||||||
DialogButton.make('Delete', callback=on_ok)],
|
DialogButton.make('Delete', callback=on_ok)],
|
||||||
transient_for=self._ui.history_manager_window)
|
transient_for=self._ui.history_manager_window).show()
|
||||||
|
|
||||||
def on_search_db_button_clicked(self, widget):
|
def on_search_db_button_clicked(self, widget):
|
||||||
text = self._ui.search_entry.get_text()
|
text = self._ui.search_entry.get_text()
|
||||||
|
|
Loading…
Add table
Reference in a new issue