-
-
Notifications
You must be signed in to change notification settings - Fork 176
Add feature to disable VM screenshots #577
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
base: main
Are you sure you want to change the base?
Conversation
/// If this VM was imported from some other app, contains the name of the ``VMImporter`` that was used. | ||
public var importedFromAppName: String? = nil | ||
/// Controls whether screenshots and thumbnails are automatically generated for this VM | ||
@DecodableDefault.True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added for backwards compatibility
.foregroundStyle(.secondary) | ||
.lineLimit(nil) | ||
.font(.caption) | ||
ZStack { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zstack is used to add layers ontop of the views (z-axis layers). In this case I am adding a hover over menu that needs to cover the entire VM preview area without changing it.
Thank you for the contribution @gabefair! I'm not ready to accept this pull request as-is though, since it introduces a change that will conflict with future enhancements that I'm already working on. I would accept a pull request that simply adds a new global on/off toggle for virtual machine screenshots (accessible from the app's settings window), as that would remain useful even after I ship the aforementioned changes. I'm sorry I can't merge this, as it seems like you did a great job. I'm working on introducing contribution guidelines that will prevent this sort of thing from happening in the future. |
No worries, I will refactor and update the PR once your changes are mainlined. |
This setting is found by hovering over the VM's preview window in the VM library. It is a per VM setting so the user can decide which VM's can have the preview screenshots. This hover over menu also allows the user to save the screenshot, which can be helpful for debugging.
This feature does not need the VM to be off to implement.