Skip to content

Commit 03b4c7b

Browse files
committed
Update resources_qml.rs
1 parent ae990ea commit 03b4c7b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

check-qml-resources.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env sh
2+
3+
qml_files=$(find src/frontend/qt/qml \( -name '*.qml' -or -name '*.js' \) | sed 's/^src\/frontend\/qt\/qml\///')
4+
for f in $qml_files; do
5+
if ! fgrep -q "\"$f\"" "src/frontend/qt/resources_qml.rs"; then
6+
echo "File $f not found in QML resource file"
7+
exit 1
8+
fi
9+
done

src/frontend/qt/resources_qml.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub fn init_resources() {
2626
"Button/CommandButton.qml",
2727
"Button/ImageButton.qml",
2828
"Button/RefreshButton.qml",
29+
"ChartsView/ChartsView.qml",
2930
"DetailsView/CommandButtonRow.qml",
3031
"DetailsView/GroupBoxLabel.qml",
3132
"DetailsView/Header.qml",

0 commit comments

Comments
 (0)