Skip to content

Refactor bound control - #1638

Open
hicom150 wants to merge 1 commit into
webtorrent:masterfrom
hicom150:refactor_bound_control
Open

Refactor bound control#1638
hicom150 wants to merge 1 commit into
webtorrent:masterfrom
hicom150:refactor_bound_control

Conversation

@hicom150

@hicom150 hicom150 commented Aug 4, 2019

Copy link
Copy Markdown
Contributor

I've made a small refactor to simplify a bit the bound control code.

  • Delete unnecessary window state control
  • Check isMininized and isFullscreen before changing window size
  • Replace setContentBounds as useContentSize is enabled

@request-info

request-info Bot commented Aug 4, 2019

Copy link
Copy Markdown

👋 We would appreciate it if you could provide us with more information about this issue.

@github-actions

Copy link
Copy Markdown

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

@github-actions github-actions Bot added the stale label Sep 13, 2022
@alxhotel alxhotel added accepted and removed stale labels Sep 13, 2022
Comment thread src/main/windows/main.js
}
function setBounds (bounds) {
// X and Y not specified? By default, center on current screen
if (bounds.x === null && bounds.y === null) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

bounds could still be null from the saved state of the user.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants