File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,39 +81,6 @@ Dialog {
8181
8282 id: breadcrumbBarRepeater
8383 }
84- }
85-
86- RowLayout {
87- ToolSeparator {
88- Layout .fillWidth : true
89- orientation: Qt .Horizontal
90- }
91- }
92-
93- RowLayout {
94- Layout .fillWidth : true
95- spacing: 10
96-
97-
98- Button {
99- text: qsTr (" Parent folder" )
100- enabled: currentFolder !== " file:///"
101- onClicked: {
102- var path = currentFolder .toString ().replace (" file://" , " " )
103- if (path .endsWith (" /" )) path = path .slice (0 , - 1 )
104- var parts = path .split (" /" )
105-
106- if (parts .length > 1 ) {
107- parts .pop () // Go up one folder
108- } else {
109- parts = [" " ] // Ensure root "/"
110- }
111-
112- var newPath = " file://" + (parts .join (" /" ) || " /" )
113- currentFolder = newPath
114- folderModel .folder = currentFolder
115- }
116- }
11784
11885 Item {
11986 Layout .fillWidth : true
You can’t perform that action at this time.
0 commit comments