Skip to content

Commit 016d90b

Browse files
committed
Warn about unsupported blocks
Resolves: #46
1 parent 5ed8b15 commit 016d90b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/app/qml/main.qml

+11
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ ApplicationWindow {
5757
projectPlayer: player
5858
}
5959

60+
CustomMessageDialog {
61+
id: unsupportedBlocksDialog
62+
title: qsTr("Warning")
63+
text: qsTr("This project contains unsupported blocks:")
64+
informativeText: player.unsupportedBlocks.join('\r\n')
65+
}
66+
6067
ColumnLayout {
6168
id: layout
6269
anchors.fill: parent
@@ -153,6 +160,10 @@ ApplicationWindow {
153160
focus: true
154161
turboMode: AppMenuBar.turboMode
155162
mute: AppMenuBar.mute
163+
onLoaded: {
164+
if(unsupportedBlocks.length > 0)
165+
unsupportedBlocksDialog.open()
166+
}
156167
}
157168
}
158169
}

0 commit comments

Comments
 (0)