[gnome-klotski] Delay setting settings.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski] Delay setting settings.
- Date: Mon, 10 Feb 2020 17:19:00 +0000 (UTC)
commit c37ceabc9dd3c1e7732a99fad19fbfa9e2d6becf
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Feb 10 03:40:36 2020 +0100
Delay setting settings.
src/klotski-window.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index e3234d9..ff14df5 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -637,6 +637,8 @@ private class KlotskiWindow : ApplicationWindow
[GtkCallback]
private void on_destroy ()
{
+ settings.delay ();
+
/* Save game state */
settings.set_int (KEY_LEVEL, current_level);
@@ -644,6 +646,8 @@ private class KlotskiWindow : ApplicationWindow
settings.set_int ("window-width", window_width);
settings.set_int ("window-height", window_height);
settings.set_boolean ("window-is-maximized", window_is_maximized);
+
+ settings.apply ();
}
/*\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]