diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2021-02-02 11:50:57 -0500 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2021-02-02 11:50:57 -0500 |
commit | 2a858d84e22c3813a380d4ff3e838cd0093955a0 (patch) | |
tree | fdb5496fb731cd6c77185b0b328786d91cbda288 | |
parent | Try to fix format script and fix linting (diff) | |
download | nheko-2a858d84e22c3813a380d4ff3e838cd0093955a0.tar.xz |
Update format script again
-rwxr-xr-x | .ci/format.sh | 3 | ||||
-rw-r--r-- | resources/qml/PrivacyScreen.qml | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/.ci/format.sh b/.ci/format.sh index 31eba878..cdbc0464 100755 --- a/.ci/format.sh +++ b/.ci/format.sh @@ -14,7 +14,8 @@ do clang-format -i "$f" done; -QMLFORMAT_PATH=$(command -v qmlformat) +QMLFORMAT_PATH=$(command -v qmlformat || true) + if [ -n "$QMLFORMAT_PATH" ]; then QML_FILES=$(find resources -type f -iname "*.qml") diff --git a/resources/qml/PrivacyScreen.qml b/resources/qml/PrivacyScreen.qml index 98c802a0..2cfae471 100644 --- a/resources/qml/PrivacyScreen.qml +++ b/resources/qml/PrivacyScreen.qml @@ -33,9 +33,9 @@ Item { onTriggered: { if (MainWindow.visible) timelineRoot.grabToImage(function(result) { - screenSaver.state = "Visible"; - imageSource = result.url; - }, Qt.size(width, height)); + screenSaver.state = "Visible"; + imageSource = result.url; + }, Qt.size(width, height)); } } |