From b0b77834a894a172b7abe46c442ec9b3eac2355a Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sat, 22 Oct 2022 14:17:52 +0200 Subject: [PATCH] Fixing inability to open and load files due to greet screen fixes. --- .../qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml | 4 ++-- .../eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml index 748fb4e..a26dd0a 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml @@ -35,7 +35,7 @@ import "js/math/latex.js" as LatexJS \sa LogarithmPlotter */ MenuBar { - property var settings: settingsMenu + property var settingsMenu: settingsSubMenu Menu { title: qsTr("&File") @@ -124,7 +124,7 @@ MenuBar { } Menu { - id: settingsMenu + id: settingsSubMenu title: qsTr("&Settings") Action { id: checkForUpdatesMenuSetting diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml index 542bb25..ba25558 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/GreetScreen.qml @@ -104,7 +104,7 @@ Popup { onClicked: { Helper.setSettingBool("check_for_updates", checked) // Set in the menu bar - appMenu.settings.children[0].checked = checked + appMenu.settingsMenu.children[0].checked = checked } } @@ -117,7 +117,7 @@ Popup { text: qsTr('Reset redo stack when a new action is added to history') onClicked: { Helper.setSettingBool("reset_redo_stack", checked) - appMenu.settings.children[1].checked = checked + appMenu.settingsMenu.children[1].checked = checked } } @@ -130,7 +130,7 @@ Popup { text: qsTr('Enable LaTeX rendering') onClicked: { Helper.setSettingBool("enable_latex", checked) - appMenu.settings.children[2].checked = checked + appMenu.settingsMenu.children[2].checked = checked } } @@ -143,7 +143,7 @@ Popup { text: qsTr('Automatically close parenthesises and brackets in expressions') onClicked: { Helper.setSettingBool("expression_editor.autoclose", checked) - appMenu.settings.children[3].children[0].checked = checked + appMenu.settingsMenu.children[3].children[0].checked = checked } } @@ -156,7 +156,7 @@ Popup { text: qsTr('Enable syntax highlighting for expressions') onClicked: { Helper.setSettingBool("expression_editor.colorize", checked) - appMenu.settings.children[3].children[1].checked = checked + appMenu.settingsMenu.children[3].children[1].checked = checked } } @@ -169,7 +169,7 @@ Popup { text: qsTr('Enable autocompletion interface in expression editor') onClicked: { Helper.setSettingBool("autocompletion.enabled", checked) - appMenu.settings.children[3].children[2].checked = checked + appMenu.settingsMenu.children[3].children[2].checked = checked } }