1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-09 20:42:47 +01:00

Fix btn being click able if it is a widget

This commit is contained in:
Elias Steurer 2020-06-19 20:25:57 +02:00
parent 2b1ba81c94
commit 7b4a5cb747

View File

@ -262,6 +262,14 @@ Item {
availableWidth: width availableWidth: width
availableHeight: height availableHeight: height
fontSize: 11 fontSize: 11
onActiveMonitorsChanged: {
if(isWidget()){
btnSetWallpaper.enabled = true
return
}
btnSetWallpaper.enabled = activeMonitors.length > 0
}
} }
} }