[gnome-weather] Save GWeather cache on application close
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Save GWeather cache on application close
- Date: Tue, 26 Mar 2013 14:58:18 +0000 (UTC)
commit bcdb4c16d1dfcca00b3e198ea5e69e6940a27730
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Mar 17 19:11:41 2013 +0100
Save GWeather cache on application close
Use the new API to ensure that the network cache is flushed to disk.
src/main.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index cc1c429..97525b9 100644
--- a/src/main.js
+++ b/src/main.js
@@ -83,6 +83,12 @@ const Application = new Lang.Class({
vfunc_activate: function() {
(new Window.MainWindow({ application: this })).show();
+ },
+
+ vfunc_shutdown: function() {
+ GWeather.Info.store_cache();
+
+ this.parent();
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]