fixed some windows specific stuff

This commit is contained in:
= 2020-09-04 22:53:57 +10:00
parent 5aff6cacb4
commit 83bdd72bfe
3 changed files with 4 additions and 3 deletions

View file

@ -171,7 +171,8 @@ namespace Buypeeb {
Directory.CreateDirectory(this.location);
}
if (!File.Exists(p)) {
File.CreateText(p);
var fs = File.CreateText(p);
fs.Close();
}
File.WriteAllText(System.IO.Path.Combine(this.location, "userdata.json"), j);
}

View file

@ -77,7 +77,7 @@ namespace Buypeeb {
throw e;
}
var jst = TimeZoneInfo.FindSystemTimeZoneById("Asia/Tokyo");
var jst = TimeZoneInfo.CreateCustomTimeZone("JST", new TimeSpan(9, 0, 0), "Japan Standard Time", "Japen Standard Time");
var j = j_full["items"];
this.originalName = j["productName"];

View file

@ -172,7 +172,7 @@
<child>
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="sensitive">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Save</property>
<property name="label" translatable="yes">Save</property>