Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Fixing a crash an and UI issue #51

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

Conversation

carlossanlop
Copy link

#44 - NullPointerException when accessing screenUserControls using an index if we expect the list to exist. I made sure the list exists in advance. This change meant that the rules to fill the list were slightly changed, which I addressed and added comments to explain why.

PrefsByScreenUserControl does not have the correct size to show all the buttons at the same time when inside PreferencesForm. I am facing this issue in a high resolution screen in Windows 10. I fixed it by making sure the sizes are exact. I also made sure that the sub-form would stay in the same place when switching tabs.

Spurrious mouse movement events squashed
carlossanlop pushed a commit to ChayoteJarocho/WebPageScreensaver that referenced this pull request Mar 21, 2019
…r has multiple monitors, but then changes to 1 monitor, the preferences form shows the single screen tab list empty, instead of showing all the previously saved websites.

By moving two function calls inside PreferencesForm_Load outside the if/else, we ensure that switching from 1 to multi monitors, and back, will always show the expected list of pages in the expected tabs.
@carlossanlop
Copy link
Author

Sorry for the weird mess with the list of commits. Here's what happened: I tried to test webstylecenter's pull request in my machine and ended up pushing it to my fork, only to realize somewhat late that this PR was getting updated every time my fork was getting updated (I'm fairly new to git).
I fixed the problem by reverting the merge of webstylecenter's fork, and I pushed an additional fix I discovered with single monitors (see the last commit, aa3b287).

@carlossanlop
Copy link
Author

@cwc any chance you could review this?

carlossanlop and others added 2 commits September 5, 2020 23:53
PrefsByScreenUserControl does not have the correct size to show all the
buttons at the same time when inside PreferencesForm.
I am facing this issue in a high resolution screen in Windows 10.
I fixed it by making sure the sizes are exact.
I also made sure that the sub-form would stay in the same place when
switching tabs.
I realized that when the user has multiple monitors, but then changes to
 1 monitor, the preferences form shows the single screen tab list empty,
  instead of showing all the previously saved websites.
By moving two function calls inside PreferencesForm_Load outside the
if/else, we ensure that switching from 1 to multi monitors, and back,
will always show the expected list of pages in the expected tabs.
carlossanlop and others added 23 commits September 5, 2020 23:58
Sort and remove usings.
Rename namespace.
Fix a nullability issue.
Add SetHighDpiMode call, which is added by default in new WinForms apps.
Use ToUpperInvariant to check arguments.
Clean spaces.
Sort and remove usings.
Rename namespace.
Rename namespace.
Remove unnecessary global using.
Point default URL to this fork.
Spacing.
Sort and remove usings, move them to top.
Rename namespace.
Update reference to regkey in Program.
Spacing.
Rename namespace.
Sort and remove usings.
Rename namespace.
Spacing.
Sort and remove usings.
Rename namespace.
Temporarily substitute Navigate call to NavigateToString to prevent build failure. May not be the right call.
Rename namespace.
Upgrade obsolete WebBrowser to new WebView2, which is supported in 5.0 and uses Edge.
Add BeginInit and EndInit calls for the new WebView2.
Spacing.
Upgrade to WebView2. At the time of this commit, Edge Canary is a dependency of this app, but this may change soon when WebView2 gets a stable release.
Alter the layout and make it look better.
carlossanlop and others added 23 commits September 7, 2020 23:06
…does not read MouseMove (may be a bug on their side).

Ensure sizes of fonts and windows are respected.
Set the initial version to 2.0.1-Alpha.
Add the trimming warning setting and set to true.
Final touches to the Readme file
* Add some helpful console messages on wrong arguments. Move code to open preferences form to its own method.

* Update WebView2 package version.

* TFM must target .NET 5.0 and Windows specifically (due to WinForms).

* .gitignore

* Bump version

* Remove "Any" from sln

* Address info Roslyn messages

* Clean some unused code, simplify some other, remove regions.

* Add new version in readme.

* unnecessary parenthesis
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants