Фикс: ProviderSetupGuide модальный-в-модальном (non-modal + z:100), index required property в delegate'ах FileTreePanel/EditorPanel, добавлена диагностика openProviderGuide, vault=/Users/alex/Nextcloud/test

This commit is contained in:
Flora (opencode)
2026-08-17 15:16:19 +03:00
parent e7e793c304
commit 9946e440ce
4 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -16,11 +16,12 @@ Dialog {
readonly property bool isGit: providerIndex <= 2
title: qsTr("Подключение: %1").arg(providerName)
modal: true
z: 100
modal: false
width: 640
height: 520
anchors.centerIn: parent
closePolicy: Dialog.NoAutoClose
closePolicy: Dialog.CloseOnEscape | Dialog.CloseOnPressOutside
function defaultUrl() {
switch (root.providerIndex) {
+1
View File
@@ -34,6 +34,7 @@ Item {
Rectangle {
id: tab
required property string modelData
required property int index
readonly property bool active: index === documentManager.activeIndex
width: Math.max(96, Math.min(200, tabLabel.implicitWidth + 44))
height: 26
+1
View File
@@ -97,6 +97,7 @@ Item {
required property bool expanded
required property bool hasChildren
required property string icon
required property int index
width: treeView.width
height: 30
+2
View File
@@ -124,10 +124,12 @@ Dialog {
Button { text: "Syncthing"; Layout.fillWidth: true; onClicked: openProviderGuide(4, "Syncthing") }
function openProviderGuide(idx, name) {
console.log("openProviderGuide:", idx, name)
providerGuideForButtons.providerIndex = idx
providerGuideForButtons.providerName = name
providerGuideForButtons.connected = false
providerGuideForButtons.open()
console.log("guide opened:", providerGuideForButtons.visible, providerGuideForButtons.width, providerGuideForButtons.height)
}
Label {
color: "#888"