mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Remove redundant import and fix visible warning
This commit is contained in:
parent
bfeb766a91
commit
d59910a8f2
2 changed files with 6 additions and 5 deletions
|
@ -29,10 +29,12 @@ Item {
|
||||||
interval: screenTimeout * 1000
|
interval: screenTimeout * 1000
|
||||||
running: true
|
running: true
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
timelineRoot.grabToImage(function(result) {
|
if (MainWindow.visible) {
|
||||||
screenSaver.state = "Visible";
|
timelineRoot.grabToImage(function(result) {
|
||||||
imageSource = result.url;
|
screenSaver.state = "Visible";
|
||||||
}, Qt.size(width, height));
|
imageSource = result.url;
|
||||||
|
}, Qt.size(width, height));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import "."
|
|
||||||
import "./delegates"
|
import "./delegates"
|
||||||
import "./device-verification"
|
import "./device-verification"
|
||||||
import "./emoji"
|
import "./emoji"
|
||||||
|
|
Loading…
Reference in a new issue