Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The preferences window always opens on the right side of the monitor #22

Closed
sindresorhus opened this issue Apr 7, 2019 · 5 comments
Closed
Labels
enhancement New feature or request 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted Extra attention is needed

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Apr 7, 2019

Issuehunt badges

Screen Shot 2019-04-07 at 18 25 47

Even if I move it and close the window, the next time it opens in the same position.

I think it should open in the center the first time, and then remember the user's position from there. I think we need to use saveFrame(usingName:).


IssueHunt Summary

mortennn mortennn has been rewarded.

Backers (Total: $60.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels Apr 7, 2019
@IssueHuntBot
Copy link

@IssueHunt has funded $60.00 to this issue.


@DivineDominion
Copy link
Collaborator

I looked into this. This appears to be 2 things: first, restore the window position. Second, window.center() doesn't center on your device. I added #27 to work on the first part, but the 2nd issue is strange. Can you see what happens if you create a vanilla Cocoa app and call center() on the main window? Maybe center on user interaction with a button? (Because IB sometimes puts the windows at the center correctly already)

@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 10, 2019
@DivineDominion
Copy link
Collaborator

@sindresorhus Was this solved through #33 on your machine, too?

@sindresorhus
Copy link
Owner Author

#33 fixes it.

@issuehunt-oss
Copy link

issuehunt-oss bot commented Jul 6, 2019

@sindresorhus has rewarded $54.00 to @Mortennn. See it on IssueHunt

  • 💰 Total deposit: $60.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $6.00

@issuehunt-oss issuehunt-oss bot added 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt and removed 💵 Funded on Issuehunt This issue has been funded on Issuehunt labels Jul 6, 2019
dezinezync pushed a commit to dezinezync/Preferences that referenced this issue Dec 17, 2022
dezinezync pushed a commit to dezinezync/Preferences that referenced this issue Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants