1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-19 00:42:33 +02: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
availableHeight: height
fontSize: 11
onActiveMonitorsChanged: {
if(isWidget()){
btnSetWallpaper.enabled = true
return
}
btnSetWallpaper.enabled = activeMonitors.length > 0
}
}
}
@ -364,7 +372,7 @@ Item {
if (root.isWidget()) {
ScreenPlay.screenPlayManager.createWidget(
type, absoluteStoragePath, previewImage)
type, absoluteStoragePath, previewImage)
}
root.state = "inactive"