We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 081687d commit e8323a0Copy full SHA for e8323a0
src/Gtk/MainWindow.vala
@@ -550,7 +550,24 @@ class MainWindow : Gtk.Window{
550
return;
551
}
552
553
-
+
554
+ // confirm deletion ------------------
555
556
+ var confirm_dialog = new Gtk.MessageDialog(
557
+ this,
558
+ Gtk.DialogFlags.MODAL,
559
+ Gtk.MessageType.QUESTION,
560
+ Gtk.ButtonsType.YES_NO,
561
+ "Are you sure you want to delete this snapshot?"
562
+ );
563
564
+ var confirm_response = confirm_dialog.run();
565
+ confirm_dialog.destroy();
566
567
+ if (confirm_response != Gtk.ResponseType.YES) {
568
+ return;
569
+ }
570
571
// get selected snapshots
572
573
if (!App.thread_delete_running){
0 commit comments