mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-08-16 20:10:39 +03:00
Added confirmation dialog on delete. (#269)
This commit is contained in:
parent
081687d4e9
commit
e8323a02bb
@ -550,7 +550,24 @@ class MainWindow : Gtk.Window{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// confirm deletion ------------------
|
||||||
|
|
||||||
|
var confirm_dialog = new Gtk.MessageDialog(
|
||||||
|
this,
|
||||||
|
Gtk.DialogFlags.MODAL,
|
||||||
|
Gtk.MessageType.QUESTION,
|
||||||
|
Gtk.ButtonsType.YES_NO,
|
||||||
|
"Are you sure you want to delete this snapshot?"
|
||||||
|
);
|
||||||
|
|
||||||
|
var confirm_response = confirm_dialog.run();
|
||||||
|
confirm_dialog.destroy();
|
||||||
|
|
||||||
|
if (confirm_response != Gtk.ResponseType.YES) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// get selected snapshots
|
// get selected snapshots
|
||||||
|
|
||||||
if (!App.thread_delete_running){
|
if (!App.thread_delete_running){
|
||||||
|
Loading…
Reference in New Issue
Block a user