Remove redundant import and fix visible warning

This commit is contained in:
Joseph Donofry 2021-02-01 18:42:18 -05:00
parent bfeb766a91
commit d59910a8f2
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 6 additions and 5 deletions

View file

@ -29,12 +29,14 @@ Item {
interval: screenTimeout * 1000 interval: screenTimeout * 1000
running: true running: true
onTriggered: { onTriggered: {
if (MainWindow.visible) {
timelineRoot.grabToImage(function(result) { timelineRoot.grabToImage(function(result) {
screenSaver.state = "Visible"; screenSaver.state = "Visible";
imageSource = result.url; imageSource = result.url;
}, Qt.size(width, height)); }, Qt.size(width, height));
} }
} }
}
Rectangle { Rectangle {
id: screenSaver id: screenSaver

View file

@ -1,4 +1,3 @@
import "."
import "./delegates" import "./delegates"
import "./device-verification" import "./device-verification"
import "./emoji" import "./emoji"