Skip to content

Fixing setting crash#12

Open
JackDarnell wants to merge 5 commits intodado3212:masterfrom
JackDarnell:Fixing-Setting-Crash
Open

Fixing setting crash#12
JackDarnell wants to merge 5 commits intodado3212:masterfrom
JackDarnell:Fixing-Setting-Crash

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