Skip to content

Add setting to hide the close button from the recording window#98

Open
papadi wants to merge 4 commits intotom-englert:mainfrom
papadi:feature/hide-close-button
Open

Add setting to hide the close button from the recording window#98
papadi wants to merge 4 commits intotom-englert:mainfrom
papadi:feature/hide-close-button

Conversation

@papadi
Copy link

@papadi papadi commented Jan 28, 2026

Close button in the recording window is often annoying, especially when sharing the upper right corner, since it overlaps with the close button of another window. Anyway, it is possible to close the region using the taskbar. Default value of the new setting will not change the original bevaviour.

image

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new user setting to control the visibility of the close button in the recording window. The close button can be annoying when sharing the upper right corner of the screen as it may overlap with other window's close buttons. Users can now hide it via a checkbox in the main window settings, while still being able to close the region using the taskbar.

Changes:

  • Added a new ShowCloseButton user setting with a default value of True to preserve existing behavior
  • Bound the close button's visibility in the recording window to this setting using BooleanToVisibilityConverter
  • Added a "Show close button" checkbox in the main window for users to toggle this setting

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/RegionToShare/RecordingWindow.xaml Added namespace import for properties, added BooleanToVisibilityConverter resource, and bound close button visibility to ShowCloseButton setting
src/RegionToShare/Properties/Settings.settings Added ShowCloseButton boolean setting with default value True
src/RegionToShare/Properties/Settings.Designer.cs Auto-generated property accessor for ShowCloseButton setting
src/RegionToShare/MainWindow.xaml Added checkbox UI control to toggle ShowCloseButton setting
src/RegionToShare/App.config Added ShowCloseButton configuration entry with default value True
Files not reviewed (1)
  • src/RegionToShare/Properties/Settings.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@papadi
Copy link
Author

papadi commented Jan 29, 2026

This is incomplete. There's no way to return to the main window this way.

@papadi
Copy link
Author

papadi commented Jan 29, 2026

Ok, problem fixed. Now when recording starts the main window is hidden from taskbar and the recoding window appears on taskbar. If that closes then we are back to main window which reappears on taskbar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants