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

Fixing setting crash #12

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JackDarnell
Copy link

Cause:
The system preferences crash is caused by the square size being too big for the preview screen, causing the app to crash when modifying the size in system preferences.

Solution:
using the isPreview call in the MazeScene to always set the square size to 1.

Tradeoffs:
only downside is that it doesn't scale properly, could figure out the max square size for the preview screen and use division to calculate it like before. This is more of a rudimentary fix but it prevents crashes.

Also a gitignore should probably be added for these files and folders:

  • ScreenMazer.xcodeproj/project.pbxproj
  • ScreenMazer.xcodeproj/project.xcworkspace/xcshareddata
  • ScreenMazer.xcodeproj/project.xcworkspace/xcuserdata

Not sure if I can do that in a PR or if the repo owner can only edit that.

Since multiple instances of the app runs at once screensaver defaults are needed rather than just the typical user defaults. This fixes the issue with the screensaver hanging when running on two monitors.
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.

1 participant