From ec78c97dc62aaca1467e3df64cc6d32da8cdfab4 Mon Sep 17 00:00:00 2001 From: Christian Moser Date: Mon, 17 Feb 2025 02:41:58 +0100 Subject: [PATCH] 2025.02.17 02:41:58 (desktop) --- sgbackup/gui/_app.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sgbackup/gui/_app.py b/sgbackup/gui/_app.py index 079f421..e002cbe 100644 --- a/sgbackup/gui/_app.py +++ b/sgbackup/gui/_app.py @@ -465,9 +465,17 @@ class GameView(Gtk.Box): child.backup_button.set_sensitive(False) def _on_columnview_backup_button_clicked(self,button,item): + def on_dialog_response(self,dialog,parent): + if hasattr(parent,'statusbar'): + parent.statusbar.pop(1) + game = item.get_item() - dialog = BackupSingleDialog(self.get_root(),game) - dialog.connect('response',on_dialog_response) + parent = self.get_root() + dialog = BackupSingleDialog(parent,game) + + if hasattr(parent,'statusbar'): + parent.statusbar.push(1,"Backing up \"{game}\" ...".format(game=game.name)) + dialog.connect('response',on_dialog_response,parent) dialog.run() def _on_columnview_edit_button_clicked(self,button,item):