diff --git a/ChatView/qml/parts/BottomBar.qml b/ChatView/qml/parts/BottomBar.qml index 1040d80..8e9ddfe 100644 --- a/ChatView/qml/parts/BottomBar.qml +++ b/ChatView/qml/parts/BottomBar.qml @@ -60,12 +60,6 @@ Rectangle { text: qsTr("Stop") } - CheckBox { - id: syncOpenFilesId - - text: qsTr("Sync open files with model context") - } - QoAButton { id: attachFilesId @@ -88,6 +82,15 @@ Rectangle { text: qsTr("Link files") } + CheckBox { + id: syncOpenFilesId + + text: qsTr("Sync open files") + + ToolTip.visible: syncOpenFilesId.hovered + ToolTip.text: qsTr("Automatically synchronize currently opened files with the model context") + } + Item { Layout.fillWidth: true } diff --git a/settings/GeneralSettings.cpp b/settings/GeneralSettings.cpp index 1c26021..bd03a71 100644 --- a/settings/GeneralSettings.cpp +++ b/settings/GeneralSettings.cpp @@ -290,8 +290,8 @@ void GeneralSettings::showUrlSelectionDialog( auto cancelButton = new QPushButton(TrConstants::CANCEL); connect(cancelButton, &QPushButton::clicked, &dialog, &QDialog::reject); - dialog.buttonLayout()->addWidget(okButton); dialog.buttonLayout()->addWidget(cancelButton); + dialog.buttonLayout()->addWidget(okButton); urlList->setFocus(); dialog.exec();