Skip to content

Commit

Permalink
Bump version to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zqhong committed Aug 17, 2022
1 parent 9bea9bb commit 4c8f2b5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion App.config
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<value>AutoMode</value>
</setting>
<setting name="RunMode" serializeAs="String">
<value>Debug</value>
<value>Production</value>
</setting>
</RyzenTuner.Properties.Settings>
</userSettings>
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// 修订号
//
//通过使用 "*",如下所示:
[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
2 changes: 1 addition & 1 deletion Properties/Settings.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 Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Value Profile="(Default)">AutoMode</Value>
</Setting>
<Setting Name="RunMode" Type="System.String" Scope="User">
<Value Profile="(Default)">Debug</Value>
<Value Profile="(Default)">Production</Value>
</Setting>
</Settings>
</SettingsFile>
Expand Down
6 changes: 6 additions & 0 deletions Utils/AppUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ namespace RyzenTuner.Utils
public static class AppUtils
{
public const string ModeDebug = "Debug";
public const string ModeProduction = "Production";

public static bool IsDebug()
{
return Settings.Default.RunMode == ModeDebug;
}

public static bool IsProduction()
{
return Settings.Default.RunMode == ModeProduction;
}
}
}

0 comments on commit 4c8f2b5

Please sign in to comment.