Skip to content

Commit

Permalink
New taigochi animation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pontaoski committed Dec 16, 2019
1 parent d708107 commit 67089b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ namespace Taigo {
var dialog = new Gtk.MessageDialog(this, Gtk.DialogFlags.MODAL, Gtk.MessageType.WARNING, Gtk.ButtonsType.YES_NO, "Are you sure you want to delete your Taigochi and make a new one? This cannot be undone.");
dialog.response.connect((a) => {
if (a == Gtk.ResponseType.YES) {
global_win.content_stack.hide();
Timeout.add(2000, () => {
global_win.content_stack.show();
return false;
}, Priority.DEFAULT);
this.init_taikochi(true);
this.content_stack.set_visible_child_name("normal");
}
Expand Down

0 comments on commit 67089b7

Please sign in to comment.