diff --git a/qml/ClideEditor.qml b/qml/ClideEditor.qml index c971e81..b16d9b5 100644 --- a/qml/ClideEditor.qml +++ b/qml/ClideEditor.qml @@ -109,10 +109,7 @@ SplitView { selectedTextColor: RustColors.editor_highlighted_text textFormat: Qt.AutoText wrapMode: TextArea.Wrap - - Component.onCompleted: { - textArea.text = FileSystem.readFile(FileSystem.filePath) - } + text: FileSystem.readFile(root.filePath) onLinkActivated: function (link) { Qt.openUrlExternally(link);