Compare commits
No commits in common. "aebf45892341a3f92d5e0253f374c5ea3a0a5a28" and "617ade0163df4bc5d026d39252166a3c7a9d72af" have entirely different histories.
aebf458923
...
617ade0163
@ -112,7 +112,7 @@
|
|||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Label Content="Location on disk for the player journal. There is usually no need to change this setting." Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.08,0.496"/>
|
<Label Content="Location on disk for the player journal. There is usually no need to change this setting." Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.08,0.496"/>
|
||||||
<TextBox x:Name="journallocation" IsReadOnly="true" Text="" Grid.Row="1" Grid.Column="0" Margin="5,0,5,10" TextWrapping="Wrap" />
|
<TextBox x:Name="journallocation" Text="" Grid.Row="1" Grid.Column="0" Margin="5,0,5,10" TextWrapping="Wrap" />
|
||||||
<Button x:Name="browsejournallocation" Content="Browse" Grid.Row="1" Grid.Column="1" Margin="0,0,0,0" Width="Auto" VerticalAlignment="Top" HorizontalAlignment="Left" Click="browsejournallocation_Click"/>
|
<Button x:Name="browsejournallocation" Content="Browse" Grid.Row="1" Grid.Column="1" Margin="0,0,0,0" Width="Auto" VerticalAlignment="Top" HorizontalAlignment="Left" Click="browsejournallocation_Click"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
@ -45,13 +45,9 @@ namespace EliteBGS.Util {
|
|||||||
|
|
||||||
public void SaveGlobal() {
|
public void SaveGlobal() {
|
||||||
var serializer = JsonSerializer.CreateDefault();
|
var serializer = JsonSerializer.CreateDefault();
|
||||||
using (FileStream filestream = File.OpenWrite(config_file)) {
|
using (var file = new StreamWriter(File.OpenWrite(config_file), Encoding.UTF8)) {
|
||||||
filestream.SetLength(0);
|
var stream = new JsonTextWriter(file);
|
||||||
filestream.Flush();
|
serializer.Serialize(stream, global_config);
|
||||||
using (StreamWriter file = new StreamWriter(filestream, Encoding.UTF8)) {
|
|
||||||
var stream = new JsonTextWriter(file);
|
|
||||||
serializer.Serialize(stream, global_config);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user