Skip to content

Commit

Permalink
thcrap_configure_v3: use_wininet
Browse files Browse the repository at this point in the history
  • Loading branch information
32th-System committed Oct 2, 2023
1 parent beb3292 commit 73d4dff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions thcrap_configure_v3/SettingsWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<StackPanel Margin="0,10,0,0">
<Label Content="Advanced" />
<CheckBox Name="console" Content="Enable the log console"/>
<CheckBox Name="use_wininet" Content="Use WinInet"/>
<Grid Margin="0,5,0,0">
<TextBox PreviewTextInput="NumericTextbox" Name="codepage" Width="30" HorizontalAlignment="Left" Margin="1,0,0,0"/>
<Label Padding="0" HorizontalAlignment="Left" Content="Fallback codepage" Margin="36,0,0,0" />
Expand Down
2 changes: 2 additions & 0 deletions thcrap_configure_v3/SettingsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ void WindowOpened(object sender, RoutedEventArgs e)
time_between_updates.Text = ThcrapDll.globalconfig_get_integer("time_between_updates", 5).ToString();

console.IsChecked = ThcrapDll.globalconfig_get_boolean("console", false);
use_wininet.IsChecked = ThcrapDll.globalconfig_get_boolean("use_wininet", false);
codepage.Text = ThcrapDll.globalconfig_get_integer("codepage", 932).ToString();

{
Expand Down Expand Up @@ -111,6 +112,7 @@ private void Settings_Save(object sender, RoutedEventArgs e)
ThcrapDll.globalconfig_set_integer("time_between_updates", Int32.Parse(time_between_updates.Text));

ThcrapDll.globalconfig_set_boolean("console", console.IsChecked == true);
ThcrapDll.globalconfig_set_boolean("use_wininet", use_wininet.IsChecked == true);
ThcrapDll.globalconfig_set_integer("codepage", Int32.Parse(codepage.Text));

{
Expand Down

0 comments on commit 73d4dff

Please # to comment.