[gnome-mahjongg/arnaudb/modernize-code: 2/4] Delay setting settings.
- From: Arnaud B. <arnaudb src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-mahjongg/arnaudb/modernize-code: 2/4] Delay setting settings.
 
- Date: Thu, 16 Apr 2020 17:27:30 +0000 (UTC)
 
commit f7e49fdbf7841d88acec937ae4cdd4d3a5ec6a7c
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Mar 27 18:25:52 2020 +0100
    Delay setting settings.
 src/gnome-mahjongg.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index a125c55..db5a8ce 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -202,9 +202,11 @@ public class Mahjongg : Gtk.Application
         base.shutdown ();
 
         /* Save window state */
+        settings.delay ();
         settings.set_int ("window-width", window_width);
         settings.set_int ("window-height", window_height);
         settings.set_boolean ("window-is-maximized", is_maximized);
+        settings.apply ();
     }
 
     protected override int handle_local_options (GLib.VariantDict options)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]