1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-09 12:32:40 +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
}
} }
} }
@ -364,7 +372,7 @@ Item {
if (root.isWidget()) { if (root.isWidget()) {
ScreenPlay.screenPlayManager.createWidget( ScreenPlay.screenPlayManager.createWidget(
type, absoluteStoragePath, previewImage) type, absoluteStoragePath, previewImage)
} }
root.state = "inactive" root.state = "inactive"