From 69580bed0c0d5e07319c63bd66900bc793a8bfa2 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 18 Aug 2013 13:05:06 +0200 Subject: Feedback after saving & a friendly reminder to backup savegames. --- main.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/main.go b/main.go index f334507..f071df9 100644 --- a/main.go +++ b/main.go @@ -125,8 +125,20 @@ func (g *GUI) mkMenuBar() *gtk.MenuBar { return menubar } +func (g *GUI) betaWarning() { + dlg := gtk.NewMessageDialog(g.window, gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, "This software is currently in beta.\nAlthough everythung seems to work, you should make a backup of your maps, just in case!") + dlg.Run() + dlg.Destroy() +} + func (g *GUI) save() { + g.setBusy(true) g.mapw.Save() + g.setBusy(false) + + dlg := gtk.NewMessageDialog(g.window, gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, "Map saved!") + dlg.Run() + dlg.Destroy() } func (g *GUI) mkQuickOpen() (*gtk.Menu, bool) { @@ -296,6 +308,7 @@ func (g *GUI) fixSnowIceToggled() { func (g *GUI) Show() { g.window.ShowAll() + g.betaWarning() } func (g *GUI) exitApp() { -- cgit v1.2.3-70-g09d2