Skip to content

Commit

Permalink
Disable copy button on blank
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Mar 6, 2024
1 parent 16e92a6 commit 178da9f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private void UpdatePageInternal(int index = -1)
_page.GammaLabel.Enabled = false;
_page.GammaTrackBar.Enabled = false;
_page.OpenScreenshotsFolderButton.Enabled = false;
_page.CopyButton.Enabled = false;
_page.PrevButton.Enabled = false;
_page.NextButton.Enabled = false;
SetNumberLabelText("");
Expand All @@ -158,6 +159,7 @@ private void UpdatePageInternal(int index = -1)
_page.GammaLabel.Enabled = true;
_page.GammaTrackBar.Enabled = true;
_page.OpenScreenshotsFolderButton.Enabled = true;
_page.CopyButton.Enabled = true;
_page.PrevButton.Enabled = ScreenshotFileNames.Count > 1;
_page.NextButton.Enabled = ScreenshotFileNames.Count > 1;
}
Expand Down

0 comments on commit 178da9f

Please sign in to comment.