Skip to content

Commit 57d2a17

Browse files
committed
2.3.0.5 - Changed .NET profile to use .NET 4 instead of .NET 4 Client. Application now enables visual styles. Fixed bug with upgrade path.
1 parent 7c39210 commit 57d2a17

File tree

9 files changed

+24
-10
lines changed

9 files changed

+24
-10
lines changed

Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private static void Main(string[] args)
6464
// If we're not already running then start a new instance of the application.
6565
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High;
6666

67+
Application.EnableVisualStyles();
6768
Application.SetCompatibleTextRenderingDefault(false);
6869
Application.Run(new FormMain());
6970
}

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.3.0.4")]
36-
[assembly: AssemblyFileVersion("2.3.0.4")]
35+
[assembly: AssemblyVersion("2.3.0.5")]
36+
[assembly: AssemblyFileVersion("2.3.0.5")]
3737
[assembly: NeutralResourcesLanguageAttribute("en-CA")]

app.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<assemblyIdentity
44
type="win32"
55
name="GavinKendall.AutoScreenCapture"
6-
version="2.3.0.4"/>
6+
version="2.3.0.5"/>
77
<asmv3:application>
88
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
99
<dpiAware>True/PM</dpiAware>

autoscreen.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
</FileUpgradeFlags>
1818
<OldToolsVersion>3.5</OldToolsVersion>
1919
<UpgradeBackupLocation />
20-
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
20+
<TargetFrameworkProfile>
21+
</TargetFrameworkProfile>
2122
<PublishUrl>publish\</PublishUrl>
2223
<Install>true</Install>
2324
<InstallFrom>Disk</InstallFrom>
@@ -307,6 +308,7 @@
307308
<DependentUpon>Resources.resx</DependentUpon>
308309
<DesignTime>True</DesignTime>
309310
</Compile>
311+
<None Include="app.config" />
310312
<None Include="app.manifest">
311313
<SubType>Designer</SubType>
312314
</None>

interface/FormAbout.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
<data name="richTextBoxDeveloper.Text" xml:space="preserve">
121-
<value>Auto Screen Capture 2.3.0.4 ("Boombayah")
121+
<value>Auto Screen Capture 2.3.0.5 ("Boombayah")
122122
Developed by Gavin Kendall (2008 - 2020)
123123

124124
https://autoscreen.sourceforge.io/

modules/triggers/TriggerCollection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ public bool LoadXmlFileAndAddTriggers()
217217
ScreenCaptureInterval = 0
218218
};
219219

220-
Trigger triggerInterfaceClosingHideInterface = new Trigger()
220+
Trigger triggerInterfaceClosingExitApplication = new Trigger()
221221
{
222222
Active = true,
223-
Name = "Interface Closing -> Hide",
223+
Name = "Interface Closing -> Exit",
224224
ConditionType = TriggerConditionType.InterfaceClosing,
225-
ActionType = TriggerActionType.HideInterface,
225+
ActionType = TriggerActionType.ExitApplication,
226226
Date = DateTime.Now,
227227
Time = DateTime.Now,
228228
ScreenCaptureInterval = 0
@@ -243,7 +243,7 @@ public bool LoadXmlFileAndAddTriggers()
243243
Add(triggerApplicationStartShowInterface);
244244
Add(triggerScreenCaptureStartedHideInterface);
245245
Add(triggerScreenCaptureStoppedShowInterface);
246-
Add(triggerInterfaceClosingHideInterface);
246+
Add(triggerInterfaceClosingExitApplication);
247247
Add(triggerLimitReachedStopScreenCapture);
248248

249249
SaveToXmlFile();

settings/SettingCollection.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,13 @@ public void Upgrade()
342342

343343
Settings.VersionManager.OldUserSettings = oldUserSettings;
344344

345+
if (string.IsNullOrEmpty(AppCodename) || string.IsNullOrEmpty(AppVersion))
346+
{
347+
Log.WriteMessage("No settings file found. Aborting upgrade path");
348+
349+
return;
350+
}
351+
345352
var versionInConfig = new Version(AppCodename, AppVersion, false);
346353

347354
if (versionInConfig.VersionString.Equals("2.2.0.0") ||

settings/Settings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ public static void Initialize()
134134
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.
135135
new Version(CODENAME_BOOMBAYAH, "2.3.0.1"), // Fixed bug with FilenameLengthLimit application setting.
136136
new Version(CODENAME_BOOMBAYAH, "2.3.0.2"), // Keyboard Shortcuts implemented.
137-
new Version(CODENAME_BOOMBAYAH, "2.3.0.3") // Fixed bug when creating a new Trigger.
137+
new Version(CODENAME_BOOMBAYAH, "2.3.0.3"), // Fixed bug when creating a new Trigger.
138+
new Version(CODENAME_BOOMBAYAH, "2.3.0.4") // StopOnLowDiskError setting implemented.
138139
};
139140

140141
Application = new SettingCollection

0 commit comments

Comments
 (0)