mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-05 18:42:29 +01:00
Fix btn being click able if it is a widget
This commit is contained in:
parent
2b1ba81c94
commit
7b4a5cb747
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user