Фикс: ProviderSetupGuide модальный-в-модальном (non-modal + z:100), index required property в delegate'ах FileTreePanel/EditorPanel, добавлена диагностика openProviderGuide, vault=/Users/alex/Nextcloud/test
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user