Skip to content

Commit 8cfdbba

Browse files
2.2.0.15 - Strip out backslash if it's in the active window title.
1 parent edd0317 commit 8cfdbba

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

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.2.0.14")]
36-
[assembly: AssemblyFileVersion("2.2.0.14")]
35+
[assembly: AssemblyVersion("2.2.0.15")]
36+
[assembly: AssemblyFileVersion("2.2.0.15")]
3737
[assembly: NeutralResourcesLanguageAttribute("en-CA")]

ScreenCapture.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ public string GetActiveWindowTitle()
236236

237237
if (GetWindowText(handle, buffer, chars) > 0)
238238
{
239-
return buffer.ToString();
239+
// Make sure to strip out the backslash if it's in the window title.
240+
return buffer.ToString().Replace(@"\", string.Empty);
240241
}
241242

242243
return "(system)";

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.2.0.14"/>
6+
version="2.2.0.15"/>
77
<asmv3:application>
88
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
99
<dpiAware>True/PM</dpiAware>

settings/Settings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace AutoScreenCapture
1313
public static class Settings
1414
{
1515
public static readonly string ApplicationName = "Auto Screen Capture";
16-
public static readonly string ApplicationVersion = "2.2.0.14";
16+
public static readonly string ApplicationVersion = "2.2.0.15";
1717
public static readonly string ApplicationCodename = "Dalek";
1818

1919
public static SettingCollection Application;
@@ -45,6 +45,7 @@ public static void Initialize()
4545
_versionCollection.Add(new Version("Dalek", "2.2.0.11")); // %screen% tag re-introduced
4646
_versionCollection.Add(new Version("Dalek", "2.2.0.12")); // Fixed bug with JPEG quality
4747
_versionCollection.Add(new Version("Dalek", "2.2.0.13")); // Fixed null reference when application starts at startup from Windows Startup folder
48+
_versionCollection.Add(new Version("Dalek", "2.2.0.14")); // Introduced %title% tag
4849

4950
Application = new SettingCollection();
5051
Application.Filepath = FileSystem.SettingsFolder + FileSystem.ApplicationSettingsFile;

0 commit comments

Comments
 (0)