Skip to content

Commit 865978f

Browse files
committed
2.5.0.9 - Fixed bug if you opened the application without having Dashboard as your selected tab view on startup.
1 parent 5d9c4f8 commit 865978f

File tree

7 files changed

+33
-19
lines changed

7 files changed

+33
-19
lines changed

AutoScreenCaptureSetup/AutoScreenCaptureSetup.vdproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,15 @@
259259
{
260260
"Name" = "8:Microsoft Visual Studio"
261261
"ProductName" = "8:Auto Screen Capture"
262-
"ProductCode" = "8:{BEF67281-A111-40CF-8744-AE03599D6360}"
263-
"PackageCode" = "8:{CCD5C9B6-DB73-4C57-B447-96D91336336D}"
262+
"ProductCode" = "8:{23F9442C-D935-4974-B060-2AE627EFD750}"
263+
"PackageCode" = "8:{AC9F2877-9900-4F45-A3B3-2826555A7597}"
264264
"UpgradeCode" = "8:{6B29B7BC-0101-4495-B28C-26B6D3CDCC02}"
265265
"AspNetVersion" = "8:4.0.30319.0"
266266
"RestartWWWService" = "11:FALSE"
267267
"RemovePreviousVersions" = "11:TRUE"
268268
"DetectNewerInstalledVersion" = "11:TRUE"
269269
"InstallAllUsers" = "11:TRUE"
270-
"ProductVersion" = "8:2.5.08"
270+
"ProductVersion" = "8:2.5.09"
271271
"Manufacturer" = "8:Gavin Kendall"
272272
"ARPHELPTELEPHONE" = "8:"
273273
"ARPHELPLINK" = "8:https://sourceforge.net/p/autoscreen/tickets/"

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

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

autoscreen.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# The version of Auto Screen Capture that this configuration file is intended for.
3030
# Be careful if you change the version number and don't provide the correct definitions for the specific version
3131
# as some settings will only work with certain versions of the application. Versioning of the configuration file starts with Auto Screen Capture 2.5.0.0 ("Limoncello").
32-
Version=2.5.0.8
32+
Version=2.5.0.9
3333

3434
# Starting with version 2.5.0.0 the entire configuration file defines all the default application and user settings
3535
# that were previously hard-coded within the application itself. Now you have the ability to define all of the default settings in a single file!

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Auto Screen Capture by Gavin Kendall
22

3+
2.5.0.9 Fixed bug if you opened the application without having Dashboard as your selected tab view on startup.
34
2.5.0.8 Fixed issue with SFTP settings when FileTransferIsLinuxServer setting was not available in sftp.xml due to an upgrade from an old version of the application. Added Preview, Start Screen Capture, and Stop Screen Capture buttons to Dashboard. Dynamic Regex Validator and Encryptor/Decryptor tool windows no longer "float"; they now behave like normal non-floating windows. Fixed startup issue when upgrading from an old version of the application and using the wrong version of the config file.
45
2.5.0.7 Fixed modules panel open state so it no longer affects width of tabs view if modules panel's state is open during LoadSettings.
56
2.5.0.6 New schedules no longer crash when using "independent" logic and being started manually from Add Schedule dialog form.

interface/main/FormMain-ScreenCapture.cs

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ private void EnableStartCapture()
4747
{
4848
if (GetScreenCaptureInterval() > 0)
4949
{
50-
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
51-
ToolStripButton startScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStartScreenCapture"];
52-
startScreenCaptureButton.Enabled = true;
50+
if (tabControlViews.TabCount > 0 && tabControlViews.SelectedTab != null && tabControlViews.SelectedTab.Name.Equals("tabPageDashboard"))
51+
{
52+
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
53+
ToolStripButton startScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStartScreenCapture"];
54+
startScreenCaptureButton.Enabled = true;
55+
}
5356

5457
toolStripDropDownButtonStartScreenCapture.Enabled = true;
5558
toolStripMenuItemStartScreenCapture.Enabled = true;
@@ -68,9 +71,12 @@ private void EnableStartCapture()
6871
/// </summary>
6972
private void EnableStopScreenCapture()
7073
{
71-
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
72-
ToolStripButton stopScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStopScreenCapture"];
73-
stopScreenCaptureButton.Enabled = true;
74+
if (tabControlViews.TabCount > 0 && tabControlViews.SelectedTab != null && tabControlViews.SelectedTab.Name.Equals("tabPageDashboard"))
75+
{
76+
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
77+
ToolStripButton stopScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStopScreenCapture"];
78+
stopScreenCaptureButton.Enabled = true;
79+
}
7480

7581
toolStripDropDownButtonStopScreenCapture.Enabled = true;
7682
toolStripMenuItemStopScreenCapture.Enabled = true;
@@ -84,9 +90,12 @@ private void EnableStopScreenCapture()
8490
/// </summary>
8591
private void DisableStopCapture()
8692
{
87-
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
88-
ToolStripButton stopScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStopScreenCapture"];
89-
stopScreenCaptureButton.Enabled = false;
93+
if (tabControlViews.TabCount > 0 && tabControlViews.SelectedTab != null && tabControlViews.SelectedTab.Name.Equals("tabPageDashboard"))
94+
{
95+
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
96+
ToolStripButton stopScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStopScreenCapture"];
97+
stopScreenCaptureButton.Enabled = false;
98+
}
9099

91100
toolStripDropDownButtonStopScreenCapture.Enabled = false;
92101
toolStripMenuItemStopScreenCapture.Enabled = false;
@@ -100,9 +109,12 @@ private void DisableStopCapture()
100109
/// </summary>
101110
private void DisableStartCapture()
102111
{
103-
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
104-
ToolStripButton startScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStartScreenCapture"];
105-
startScreenCaptureButton.Enabled = false;
112+
if (tabControlViews.TabCount > 0 && tabControlViews.SelectedTab != null && tabControlViews.SelectedTab.Name.Equals("tabPageDashboard"))
113+
{
114+
ToolStrip toolStripDashboard = (ToolStrip)tabControlViews.SelectedTab.Controls["toolStripDashboard"];
115+
ToolStripButton startScreenCaptureButton = (ToolStripButton)toolStripDashboard.Items["dashboardStartScreenCapture"];
116+
startScreenCaptureButton.Enabled = false;
117+
}
106118

107119
toolStripDropDownButtonStartScreenCapture.Enabled = false;
108120
toolStripMenuItemStartScreenCapture.Enabled = false;

settings/Settings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ public void Initialize(FileSystem fileSystem)
280280
_versionCollection.Add(new Version(CODENAME_LIMONCELLO, "2.5.0.5"));
281281
_versionCollection.Add(new Version(CODENAME_LIMONCELLO, "2.5.0.6"));
282282
_versionCollection.Add(new Version(CODENAME_LIMONCELLO, "2.5.0.7"));
283+
_versionCollection.Add(new Version(CODENAME_LIMONCELLO, "2.5.0.8"));
283284

284285
Application = new SettingCollection()
285286
{

0 commit comments

Comments
 (0)