Refresh display resolutions when opening the settings page

This commit is contained in:
Cameron Gutman
2020-12-07 19:58:42 -06:00
parent 8381039f97
commit 53e3cd143e
3 changed files with 46 additions and 26 deletions
+3
View File
@@ -83,6 +83,9 @@ Flickable {
// ignore setting the index at first, and actually set it when the component is loaded
Component.onCompleted: {
// Refresh display data before using it to build the list
SystemProperties.refreshDisplays()
// Add native resolutions for all attached displays
var done = false
for (var displayIndex = 0; !done; displayIndex++) {