Skip to content

Commit efc2fbf

Browse files
committed
Simplify context menu entries in Qt Quick GUI
* Avoid repetition * Avoid text eliding
1 parent 1e778df commit efc2fbf

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tray/gui/qml/DevsPage.qml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ StackView {
2727
]
2828
property list<Action> extraActions: [
2929
Action {
30-
text: qsTr("Pause all devices")
30+
text: qsTr("Pause all")
3131
icon.source: App.faUrlBase + "pause"
3232
onTriggered: (source) => App.connection.pauseAllDevs()
3333
},
3434
Action {
35-
text: qsTr("Resume all devices")
35+
text: qsTr("Resume all")
3636
icon.source: App.faUrlBase + "play"
3737
onTriggered: (source) => App.connection.resumeAllDevs()
3838
}

tray/gui/qml/DirDelegate.qml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ExpandableDelegate {
2222
onTriggered: (source) => App.connection[modelData.paused ? "resumeDirectories" : "pauseDirectories"]([modelData.dirId])
2323
},
2424
Action {
25-
text: qsTr("Open in file browser")
25+
text: qsTr("Open")
2626
icon.source: App.faUrlBase + "folder"
2727
onTriggered: (source) => App.openPath(modelData.path)
2828
}
@@ -46,12 +46,12 @@ ExpandableDelegate {
4646
onTriggered: (source) => mainView.stackView.push("DirErrorsPage.qml", {dirName: modelData.name, dirId: modelData.dirId}, StackView.PushTransition)
4747
},
4848
Action {
49-
text: qsTr("Edit ignore patterns")
49+
text: qsTr("Ignore patterns")
5050
icon.source: App.faUrlBase + "filter"
5151
onTriggered: (source) => mainView.stackView.push("IgnorePatternPage.qml", {dirName: modelData.name, dirId: modelData.dirId}, StackView.PushTransition)
5252
},
5353
Action {
54-
text: qsTr("Browse remote files")
54+
text: qsTr("Remote files")
5555
icon.source: App.faUrlBase + "folder-open-o"
5656
enabled: !modelData.paused
5757
onTriggered: (source) => mainView.stackView.push("FilesPage.qml", {dirName: modelData.name, dirId: modelData.dirId}, StackView.PushTransition)
@@ -62,7 +62,7 @@ ExpandableDelegate {
6262
onTriggered: (source) => mainView.stackView.push("AdvancedDirConfigPage.qml", {dirName: modelData.name, dirId: modelData.dirId, stackView: mainView.stackView}, StackView.PushTransition)
6363
},
6464
Action {
65-
text: qsTr("Trigger media rescan")
65+
text: qsTr("Media rescan")
6666
icon.source: App.faUrlBase + "music"
6767
enabled: App.scanSupported
6868
onTriggered: (source) => App.scanPath(modelData.path)

tray/gui/qml/DirsPage.qml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ StackView {
2727
]
2828
property list<Action> extraActions: [
2929
Action {
30-
text: qsTr("Pause all folders")
30+
text: qsTr("Pause all")
3131
icon.source: App.faUrlBase + "pause"
3232
onTriggered: (source) => App.connection.pauseAllDirs()
3333
},
3434
Action {
35-
text: qsTr("Resume all folders")
35+
text: qsTr("Resume all")
3636
icon.source: App.faUrlBase + "play"
3737
onTriggered: (source) => App.connection.resumeAllDirs()
3838
},
3939
Action {
40-
text: qsTr("Rescan all folders")
40+
text: qsTr("Rescan all")
4141
icon.source: App.faUrlBase + "refresh"
4242
onTriggered: (source) => App.connection.rescanAllDirs()
4343
}

0 commit comments

Comments
 (0)