-
Notifications
You must be signed in to change notification settings - Fork 1
Adding new options and actions. #7
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9388022
Add new member variables for action handling
RicardoTM05 aa35a93
Add OnFinishAction and OnPageLoadAction handling
RicardoTM05 67d7812
Prevent multiple creation of WebView2 environment
RicardoTM05 c3643f7
Refactor WebView2 creation logic for better validation
RicardoTM05 8e1c7f2
Remove unnecessary Rainmeter redraw triggers
RicardoTM05 e0111e1
Implement synchronous script execution in WebView2
RicardoTM05 3899200
Restore to previous working version.
RicardoTM05 fcfc077
Add new properties and UpdateRaincontext function
RicardoTM05 b48bf00
Add raincontext management to Measure class
RicardoTM05 edb5084
Added handling of new actions and raincontext.
RicardoTM05 8e397a9
Refactor for dual control handling
RicardoTM05 90c430d
Implement AllowDualControl feature
RicardoTM05 38144bc
Add currentUrl member to Plugin class
RicardoTM05 899ddf8
Update WebView2.cpp
RicardoTM05 24ce69e
added zoomFactor double
RicardoTM05 3de406e
added zoomFactor
RicardoTM05 2834a3a
Added ZoomFactor
RicardoTM05 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
Again, we need to avoid these unnecessary global updates.
This was causing CallJS to execute twice when called. See JSInteraction.ini, it's being logged twice. Removing this fixed it.
Note: The 1 update delay on the result on that demo skin may be unavoidable. Other ways to fix that may be investigated anyway. However, I find it unlikely due to the calls being async, so we may have to live with it (not a big deal anyways).
We could try doing it synchronously instead, unfortunately WebView2 doesn't offer a synchronous ExecuteScript function, however, someone offered a solution that we could try. Yep, we would risk blocking rainmeter for heavy scripts, but I think lua does block rainmeter too when scripts are heavy, so it may not be such a big deal. We would do it synchronously only for ExecuteScript calls by the way.
Here’s another, pretty long conversation about the same topic.