Skip to content

Commit

Permalink
Removed disable auto-load option - v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4SSB committed Sep 3, 2021
1 parent 913a577 commit e913210
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion EU4-PCP.Packaging/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="57163AlexSSB.EU4-PCP"
Publisher="CN=23CA18F3-0DFA-4F77-B8D7-9EF595185D27"
Version="1.6.0.0" />
Version="1.6.1.0" />

<Properties>
<DisplayName>EU4-PCP</DisplayName>
Expand Down
2 changes: 1 addition & 1 deletion EU4-PCP/Models/AutoLoad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public enum AutoLoad
{
Disable,
ListMods,
Remember,
Fully
}
Expand Down
3 changes: 1 addition & 2 deletions EU4-PCP/Models/PCP_Implementations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,7 @@ public static bool ValGame()
{
string tempGamePath = Storage.RetrieveValue(General.GamePath);

if (Storage.RetrieveBoolEnum(AutoLoad.Disable) ||
string.IsNullOrEmpty(tempGamePath) ||
if (string.IsNullOrEmpty(tempGamePath) ||
!PathHandler(Scope.Game)) return false;
GamePath = tempGamePath;

Expand Down
5 changes: 1 addition & 4 deletions EU4-PCP/Models/PCP_Logic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,7 @@ public static void ChangeMod()
/// </summary>
public static void UpdateProperties()
{
if (Storage.RetrieveEnumGroup(typeof(AutoLoad)) is AutoLoad value
&& LoadValue == AutoLoad.Disable && value != AutoLoad.Disable)
LaunchSequence();
else if (Naming != (ProvinceNames)Storage.RetrieveEnumGroup(typeof(ProvinceNames)))
if (Naming != (ProvinceNames)Storage.RetrieveEnumGroup(typeof(ProvinceNames)))
MainSequence();
else if (Storage.RetrieveBool(General.ShowIllegalProv) != ShowIllegal)
MainSequence();
Expand Down
20 changes: 10 additions & 10 deletions EU4-PCP/Properties/Resources.Designer.cs

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

8 changes: 4 additions & 4 deletions EU4-PCP/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<value>EU4 Province Color Picker</value>
</data>
<data name="AppVersion" xml:space="preserve">
<value>1.6.0</value>
<value>1.6.1</value>
</data>
<data name="AutoLoad" xml:space="preserve">
<value>Auto-Load</value>
Expand Down Expand Up @@ -162,9 +162,6 @@
<data name="Definition" xml:space="preserve">
<value>From Definition</value>
</data>
<data name="DisableLoad" xml:space="preserve">
<value>Disabled</value>
</data>
<data name="Dynamic" xml:space="preserve">
<value>Dynamic</value>
</data>
Expand Down Expand Up @@ -228,6 +225,9 @@
<data name="SettingsDateFormat" xml:space="preserve">
<value>Date Format</value>
</data>
<data name="SettingsListMods" xml:space="preserve">
<value>List Available Mods</value>
</data>
<data name="SettingsPageAboutText" xml:space="preserve">
<value>Settings page placeholder text. Your app description goes here.</value>
</data>
Expand Down
19 changes: 11 additions & 8 deletions EU4-PCP/Views/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,29 @@
<StackPanel Margin="{StaticResource SmallTopMargin}">
<TextBlock Style="{StaticResource BodyTextStyle}" Text="{x:Static properties:Resources.AutoLoad}" />
<StackPanel Margin="{StaticResource XSmallTopMargin}">
<RadioButton
<CheckBox
x:Name="DisableLoadRadio"
Checked="Box_Checked"
Content="{x:Static properties:Resources.DisableLoad}"
Content="{x:Static properties:Resources.SettingsListMods}"
FontSize="{StaticResource MediumFontSize}"
Tag="AutoLoad|Disable" />
<RadioButton
IsChecked="True"
IsEnabled="False"
Tag="AutoLoad|ListMods" />
<CheckBox
x:Name="RememberLoadRadio"
Margin="{StaticResource XSmallTopMargin}"
Checked="Box_Checked"
Content="{x:Static properties:Resources.RememberLoad}"
FontSize="{StaticResource MediumFontSize}"
Tag="AutoLoad|Remember" />
<RadioButton
Tag="AutoLoad|Remember"
Unchecked="Box_Checked" />
<CheckBox
x:Name="FullyLoadRadio"
Margin="{StaticResource XSmallTopMargin}"
Checked="Box_Checked"
Content="{x:Static properties:Resources.FullyLoad}"
FontSize="{StaticResource MediumFontSize}"
Tag="AutoLoad|Fully" />
Tag="AutoLoad|Fully"
Unchecked="Box_Checked" />
</StackPanel>
</StackPanel>
<StackPanel Margin="{StaticResource SmallTopMargin}">
Expand Down
2 changes: 1 addition & 1 deletion EU4-PCP/Views/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private void ChangeGroup(string group, long index)
foreach (ToggleButton item in boxes)
{
var i = item.GetIndex();
item.IsChecked = (item is RadioButton ? i == index : i <= index);
item.IsChecked = i <= index; // (item is RadioButton ? i == index : i <= index)
}
}

Expand Down

0 comments on commit e913210

Please sign in to comment.