Skip to content

Commit

Permalink
feat: embed duration in spinbox
Browse files Browse the repository at this point in the history
  • Loading branch information
subpop committed Oct 10, 2022
1 parent c92167d commit 15a3a8d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion contents/ui/config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ ColumnLayout {
}

RowLayout {
Kirigami.FormData.label: i18n("Refresh Interval (minutes):")
Kirigami.FormData.label: i18n("Change every:")
SpinBox {
id: delaySpinBox
value: cfg_WallpaperDelay
Expand All @@ -269,6 +269,14 @@ ColumnLayout {
from: 1
to: 50000
editable: true

textFromValue: function(value, locale) {
return value + " minutes";
}

valueFromText: function(text, locale) {
return text.replace(/ minutes/, '');
}
}

Button {
Expand Down

0 comments on commit 15a3a8d

Please sign in to comment.