diff --git a/src/ViewWidgets/CustomCommandWidget.qml b/src/ViewWidgets/CustomCommandWidget.qml index 3b93c33bfd17cbba2ad121c7726e0646824c8be6..5f353f065774bb76a8a0d0240836d39803a54002 100644 --- a/src/ViewWidgets/CustomCommandWidget.qml +++ b/src/ViewWidgets/CustomCommandWidget.qml @@ -98,7 +98,11 @@ ViewWidget { QGCButton { text: "Clear Qml file" - onClicked: controller.clearQmlFile() + + onClicked: { + errorOutput.visible = false + controller.clearQmlFile() + } } } }