Skip to content

Commit

Permalink
FrmCrop: action buttons are not enabled when default settings changed
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Dec 23, 2022
1 parent 7692064 commit b21173f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class CropToolConfig: IToolConfig
/// <summary>
/// Gets, sets the option to center the <see cref="InitSelectedArea"/>.
/// </summary>
public bool AutoCenterSelection { get; set; } = false;
public bool AutoCenterSelection { get; set; } = true;


/// <summary>
Expand Down
6 changes: 4 additions & 2 deletions v9/ImageGlass/FrmMain/FrmMain.IGMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,15 @@ public void IG_About()
AllowCancel = true,
Caption = $"About",

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

Text = $"Special thanks to:\r\n" +
Text = $"Author: Dương Diệu Pháp\r\n" +
$"\r\n" +
$"Special thanks to:\r\n" +
$"◾ Logo designer: Nguyễn Quốc Tuấn.\r\n" +
$"◾ Collaborator: Kevin Routley (https://github.com/fire-eggs).\r\n" +
$"\r\n" +
Expand Down
2 changes: 1 addition & 1 deletion v9/ImageGlass/ImageGlass.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<AssemblyTitle>ImageGlass Moon</AssemblyTitle>
<Description>A lightweight, versatile image viewer</Description>
<Copyright>Copyright © 2010 - 2023 Duong Dieu Phap</Copyright>
<Version>9.0.3.1221</Version>
<Version>9.0.3.1225</Version>
<FileVersion>$(Version)</FileVersion>
<VersionPrefix>9.0.3</VersionPrefix>
<VersionSuffix>beta-3</VersionSuffix>
Expand Down
6 changes: 6 additions & 0 deletions v9/ImageGlass/Tools/FrmCrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@ private void LoadDefaultSelectionSetting(bool drawSelection)

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

// set buttons state
BtnSave.Enabled =
BtnSaveAs.Enabled =
BtnCrop.Enabled =
BtnCopy.Enabled = !Local.FrmMain.PicMain.SourceSelection.IsEmpty;


_isDefaultSelectionLoaded = true;
if (drawSelection)
Expand Down

0 comments on commit b21173f

Please sign in to comment.