Skip to content
Permalink
Browse files

- only show the display setting warning on first run if applicable

  • Loading branch information...
cozy1 committed Mar 11, 2019
1 parent 3b4767c commit f34b4cdaaa2736520c9f0072931a425873ba20d2
@@ -254,37 +254,35 @@ private void MainForm_FormClosing(object sender, FormClosingEventArgs e)

private void MainForm_Shown(object sender, EventArgs e)
{
// check for first run
bool firstRun = ConfigRepository.Instance().GetBoolean("general_firstrun");

// confirm and log App.config was properly loaded at runtime
var appConfigStatus = "<ERROR> Load Failed";
if (Convert.ToBoolean(ConfigurationSettings.AppSettings["key"]))
appConfigStatus = "Load Successful";

ConfigGlobals.Log.Info("+ App.config Status (" + appConfigStatus + ")");
ConfigGlobals.Log.Info(" - App.config Status (" + appConfigStatus + ")");

// validate and log runtime display setting
ConfigGlobals.Log.Info(" - System Display DPI Setting (" + GeneralExtension.GetDisplayDpi(this) + ")");
ConfigGlobals.Log.Info(" - System Display Screen Scale Factor (" + GeneralExtension.GetDisplayScalingFactor(this) * 100 + "%)");
if (!GeneralExtension.ValidateDisplaySettings(this, this))
if (!GeneralExtension.ValidateDisplaySettings(this, this, false, firstRun))
ConfigGlobals.Log.Info(" - Adjusted AutoScaleDimensions, AutoScaleMode, and AutoSize ...");

// don't bug the Developers when in design mode ;)
if (GeneralExtension.IsInDesignMode)
return;

bool showRevNote = ConfigRepository.Instance().GetBoolean("general_showrevnote");
if (showRevNote)
if (showRevNote && !GeneralExtension.IsInDesignMode)
{
ShowHelpForm();
ConfigRepository.Instance()["general_showrevnote"] = "false";
}

this.Refresh();

// check for first run //Check if author set at least, then it's not a first run tho, but let it show msg anyways...
bool firstRun = ConfigRepository.Instance().GetBoolean("general_firstrun");
if (!firstRun)
// don't bug the Developers when in design mode ;)
if (!firstRun || GeneralExtension.IsInDesignMode)
return;

this.Refresh();
MessageBox.Show(new Form { TopMost = true },
"Welcome to the Song Creator Toolkit for Rocksmith ..." + Environment.NewLine +
"Commonly known as, 'the toolkit'." + Environment.NewLine + Environment.NewLine +
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("47e75b2f")]
[assembly: AssemblyInformationalVersion("3b4767c4")]
[assembly: AssemblyConfiguration("")]
@@ -1,5 +1,6 @@
Rocksmith Toolkit Release Notes

- only show the display setting warning on first run if applicable
- improved App.config file compatibility
- added additional popup messages to Auto Updater to help users with process
- added system display setting logging and verification
@@ -442,8 +442,13 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>REM copy support files
xcopy /E /S /Y "$(SolutionDir)ThirdPartyApps\*.*" "$(TargetDir)*.*"</PreBuildEvent>
<PreBuildEvent>REM cleanup the TargetDir before starting the build
del /S /Q "$(TargetDir)*.*

REM copy support files
xcopy /E /S /Y "$(SolutionDir)ThirdPartyApps\*.*" "$(TargetDir)*.*"

</PreBuildEvent>
<!-- be sure to address all build types in the PostBuildEvent -->
<PostBuildEvent Condition=" '$(OS)' != 'Unix' ">
xcopy /S /Y "$(SolutionDir)Third-party Apps"
@@ -27,5 +27,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("47e75b2f")]
[assembly: AssemblyInformationalVersion("3b4767c4")]
[assembly: AssemblyConfiguration("")]
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("47e75b2f")]
[assembly: AssemblyInformationalVersion("3b4767c4")]
[assembly: AssemblyConfiguration("")]
@@ -1,3 +1,3 @@
2.9.2.0
47e75b2f
3b4767c4

0 comments on commit f34b4cd

Please sign in to comment.
You can’t perform that action at this time.