Skip to content

Commit

Permalink
2.3.0.5 - Changed .NET profile to use .NET 4 instead of .NET 4 Client…
Browse files Browse the repository at this point in the history
…. Application now enables visual styles. Fixed bug with upgrade path.
  • Loading branch information
gavinkendall committed Jun 24, 2020
1 parent 7c39210 commit 57d2a17
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 10 deletions.
1 change: 1 addition & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ private static void Main(string[] args)
// If we're not already running then start a new instance of the application.
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High;

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FormMain());
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.0.4")]
[assembly: AssemblyFileVersion("2.3.0.4")]
[assembly: AssemblyVersion("2.3.0.5")]
[assembly: AssemblyFileVersion("2.3.0.5")]
[assembly: NeutralResourcesLanguageAttribute("en-CA")]
3 changes: 3 additions & 0 deletions app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
2 changes: 1 addition & 1 deletion app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<assemblyIdentity
type="win32"
name="GavinKendall.AutoScreenCapture"
version="2.3.0.4"/>
version="2.3.0.5"/>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>True/PM</dpiAware>
Expand Down
4 changes: 3 additions & 1 deletion autoscreen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand Down Expand Up @@ -307,6 +308,7 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="app.manifest">
<SubType>Designer</SubType>
</None>
Expand Down
2 changes: 1 addition & 1 deletion interface/FormAbout.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="richTextBoxDeveloper.Text" xml:space="preserve">
<value>Auto Screen Capture 2.3.0.4 ("Boombayah")
<value>Auto Screen Capture 2.3.0.5 ("Boombayah")
Developed by Gavin Kendall (2008 - 2020)

https://autoscreen.sourceforge.io/
Expand Down
8 changes: 4 additions & 4 deletions modules/triggers/TriggerCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ public bool LoadXmlFileAndAddTriggers()
ScreenCaptureInterval = 0
};

Trigger triggerInterfaceClosingHideInterface = new Trigger()
Trigger triggerInterfaceClosingExitApplication = new Trigger()
{
Active = true,
Name = "Interface Closing -> Hide",
Name = "Interface Closing -> Exit",
ConditionType = TriggerConditionType.InterfaceClosing,
ActionType = TriggerActionType.HideInterface,
ActionType = TriggerActionType.ExitApplication,
Date = DateTime.Now,
Time = DateTime.Now,
ScreenCaptureInterval = 0
Expand All @@ -243,7 +243,7 @@ public bool LoadXmlFileAndAddTriggers()
Add(triggerApplicationStartShowInterface);
Add(triggerScreenCaptureStartedHideInterface);
Add(triggerScreenCaptureStoppedShowInterface);
Add(triggerInterfaceClosingHideInterface);
Add(triggerInterfaceClosingExitApplication);
Add(triggerLimitReachedStopScreenCapture);

SaveToXmlFile();
Expand Down
7 changes: 7 additions & 0 deletions settings/SettingCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,13 @@ public void Upgrade()

Settings.VersionManager.OldUserSettings = oldUserSettings;

if (string.IsNullOrEmpty(AppCodename) || string.IsNullOrEmpty(AppVersion))
{
Log.WriteMessage("No settings file found. Aborting upgrade path");

return;
}

var versionInConfig = new Version(AppCodename, AppVersion, false);

if (versionInConfig.VersionString.Equals("2.2.0.0") ||
Expand Down
3 changes: 2 additions & 1 deletion settings/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public static void Initialize()
new Version(CODENAME_BOOMBAYAH, "2.3.0.0"), // Faster startup, commands can be issued to a running instance, multiple schedules, more trigger conditions and trigger actions, and help tips in the help bar.
new Version(CODENAME_BOOMBAYAH, "2.3.0.1"), // Fixed bug with FilenameLengthLimit application setting.
new Version(CODENAME_BOOMBAYAH, "2.3.0.2"), // Keyboard Shortcuts implemented.
new Version(CODENAME_BOOMBAYAH, "2.3.0.3") // Fixed bug when creating a new Trigger.
new Version(CODENAME_BOOMBAYAH, "2.3.0.3"), // Fixed bug when creating a new Trigger.
new Version(CODENAME_BOOMBAYAH, "2.3.0.4") // StopOnLowDiskError setting implemented.
};

Application = new SettingCollection
Expand Down

0 comments on commit 57d2a17

Please sign in to comment.