Further to the fix I did for the Electron bug here: https://github.com/electron/electron/issues/10862
The primary monitor on Windows doesn't need to care about the scale factor, and will respect it when resetting its window bounds. This PR checks to see if the primary monitor is the matching screen and won't use the scaleFactor if the windows bounds aren't set.
Summary
Further to the fix I did for the Electron bug here: https://github.com/electron/electron/issues/10862 The primary monitor on Windows doesn't need to care about the scale factor, and will respect it when resetting its window bounds. This PR checks to see if the primary monitor is the matching screen and won't use the
scaleFactor
if the windows bounds aren't set.Ticket Link
https://mattermost.atlassian.net/browse/MM-58780 Closes https://github.com/mattermost/desktop/issues/3067