From f740ff347b79ed37e41bcc69bfffe5a73d4eefb0 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Mon, 31 Mar 2025 22:56:57 -0400 Subject: [PATCH] Fix file loading. --- qml/ClideEditor.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);