Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/gui/dialog/MoveDialog.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -11,14 +11,16 @@ DialogWindow {
id: dialog

property alias folderModel: folderList.model
property int index: -1
property int index: 0
property string name

signal moveToFolder(int index)

height: 365
width: 370

onVisibleChanged: if (visible) index = 0

header: DialogTitleBar {
enableInWindowBlendBlur: true
title: qsTr("Move Note")
Expand Down Expand Up @@ -60,8 +62,13 @@ DialogWindow {
}
}

onClicked: {
dialog.index = index;
onClicked: dialog.index = index

background: Rectangle {
radius: 6
color: index === dialog.index
? (DTK.themeType === ApplicationHelper.LightType ? "#33000000" : "#33FFFFFF")
: "transparent"
}

// text: model.name
Expand Down
Loading