projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d29494e
)
src/Application.vala
author
Alan Knowles
<alan@roojs.com>
Sat, 3 Sep 2022 10:43:58 +0000
(18:43 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sat, 3 Sep 2022 10:43:58 +0000
(18:43 +0800)
src/Application.vala
patch
|
blob
|
history
diff --git
a/src/Application.vala
b/src/Application.vala
index
dc46873
..
117f452
100644
(file)
--- a/
src/Application.vala
+++ b/
src/Application.vala
@@
-24,8
+24,12
@@
return new AppSettings();
}
string data;
- FileUtils.get_contents(setting_file, out data);
- return Json.gobject_from_data (typeof (AppSettings), data) as AppSettings;
+ try {
+ FileUtils.get_contents(setting_file, out data);
+ return Json.gobject_from_data (typeof (AppSettings), data) as AppSettings;
+ } catch (Error e) {
+ }
+ return new AppSettings();
}
public void save()
{