Skip to content

Commit

Permalink
uncommented code that will save crossplay status
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyCuban committed Nov 15, 2024
1 parent f07dc8c commit 36c6195
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ValheimServer/ValheimServer/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<value />
</setting>
<setting name="ServerVisibility" serializeAs="String">
<value>False</value>
<value>True</value>
</setting>
<setting name="Crossplay" serializeAs="String">
<value>False</value>
Expand Down
2 changes: 1 addition & 1 deletion ValheimServer/ValheimServer/AppSettings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ValheimServer/ValheimServer/AppSettings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<Value Profile="(Default)" />
</Setting>
<Setting Name="ServerVisibility" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="Crossplay" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
Expand Down
6 changes: 2 additions & 4 deletions ValheimServer/ValheimServer/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public MainWindowViewModel()
_worldTextBox = AppSettings.Default.WorldName;
_serverVisibilityCheckBox = AppSettings.Default.ServerVisibility;

// insert commented code once crossplay code is merged
// _serverCrossPlayCheckBox = AppSettings.Default.Crossplay;
_serverCrossPlayCheckBox = AppSettings.Default.Crossplay;
_folderName = string.Empty;
_hiddenTextBox = string.Empty;
}
Expand Down Expand Up @@ -298,8 +297,7 @@ private void ServerStartButtonClick()
AppSettings.Default.WorldName = WorldTextBox;
AppSettings.Default.ServerVisibility = ServerVisibilityCheckBox;

// insert commented code once crossplay code is merged
// AppSettings.Default.Crossplay = ServerCrossPlayCheckBox;
AppSettings.Default.Crossplay = ServerCrossPlayCheckBox;
AppSettings.Default.Save();
}
}
Expand Down

0 comments on commit 36c6195

Please sign in to comment.