Skip to content

Commit b21173f

Browse files
committed
FrmCrop: action buttons are not enabled when default settings changed
1 parent 7692064 commit b21173f

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

v9/Components/ImageGlass.Settings/ToolConfigs/CropToolConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class CropToolConfig: IToolConfig
6565
/// <summary>
6666
/// Gets, sets the option to center the <see cref="InitSelectedArea"/>.
6767
/// </summary>
68-
public bool AutoCenterSelection { get; set; } = false;
68+
public bool AutoCenterSelection { get; set; } = true;
6969

7070

7171
/// <summary>

v9/ImageGlass/FrmMain/FrmMain.IGMethods.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,13 +659,15 @@ public void IG_About()
659659
AllowCancel = true,
660660
Caption = $"About",
661661

662-
Heading = $"{App.AppName} beta 2\r\n" +
662+
Heading = $"{App.AppName} beta 3\r\n" +
663663
$"A lightweight, versatile image viewer\r\n" +
664664
$"\r\n" +
665665
$"Version: {appVersion}\r\n" +
666666
$".NET Runtime: {Environment.Version.ToString()}",
667667

668-
Text = $"Special thanks to:\r\n" +
668+
Text = $"Author: Dương Diệu Pháp\r\n" +
669+
$"\r\n" +
670+
$"Special thanks to:\r\n" +
669671
$"◾ Logo designer: Nguyễn Quốc Tuấn.\r\n" +
670672
$"◾ Collaborator: Kevin Routley (https://github.com/fire-eggs).\r\n" +
671673
$"\r\n" +

v9/ImageGlass/ImageGlass.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<AssemblyTitle>ImageGlass Moon</AssemblyTitle>
1515
<Description>A lightweight, versatile image viewer</Description>
1616
<Copyright>Copyright © 2010 - 2023 Duong Dieu Phap</Copyright>
17-
<Version>9.0.3.1221</Version>
17+
<Version>9.0.3.1225</Version>
1818
<FileVersion>$(Version)</FileVersion>
1919
<VersionPrefix>9.0.3</VersionPrefix>
2020
<VersionSuffix>beta-3</VersionSuffix>

v9/ImageGlass/Tools/FrmCrop.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@ private void LoadDefaultSelectionSetting(bool drawSelection)
471471

472472
Local.FrmMain.PicMain.SourceSelection = new RectangleF(x, y, w, h);
473473

474+
// set buttons state
475+
BtnSave.Enabled =
476+
BtnSaveAs.Enabled =
477+
BtnCrop.Enabled =
478+
BtnCopy.Enabled = !Local.FrmMain.PicMain.SourceSelection.IsEmpty;
479+
474480

475481
_isDefaultSelectionLoaded = true;
476482
if (drawSelection)

0 commit comments

Comments
 (0)