Skip to content

Commit 2afeaa3

Browse files
0000xFFFFradioactiveman
authored andcommitted
skins[-qt]: Support file creation/modification dates
1 parent e46812b commit 2afeaa3

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/skins-qt/menus.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ static const audqt::MenuItem sort_items[] = {
201201
audqt::MenuCommand ({N_("By File Path")}, sort_path),
202202
audqt::MenuCommand ({N_("By Custom Title")}, sort_custom_title),
203203
audqt::MenuCommand ({N_("By Comment")}, sort_comment),
204-
audqt::MenuCommand ({N_("By Disc Number")}, sort_disc)
204+
audqt::MenuCommand ({N_("By Disc Number")}, sort_disc),
205+
audqt::MenuCommand ({N_("By File Created")}, sort_file_created),
206+
audqt::MenuCommand ({N_("By File Modified")}, sort_file_modified)
205207
};
206208

207209
static const audqt::MenuItem sort_selected_items[] = {
@@ -217,7 +219,9 @@ static const audqt::MenuItem sort_selected_items[] = {
217219
audqt::MenuCommand ({N_("By File Path")}, sort_sel_path),
218220
audqt::MenuCommand ({N_("By Custom Title")}, sort_sel_custom_title),
219221
audqt::MenuCommand ({N_("By Comment")}, sort_sel_comment),
220-
audqt::MenuCommand ({N_("By Disc Number")}, sort_sel_disc)
222+
audqt::MenuCommand ({N_("By Disc Number")}, sort_sel_disc),
223+
audqt::MenuCommand ({N_("By File Created")}, sort_sel_file_created),
224+
audqt::MenuCommand ({N_("By File Modified")}, sort_sel_file_modified)
221225
};
222226

223227
static const audqt::MenuItem playlist_sort_items[] = {

src/skins/menus.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ static const AudguiMenuItem sort_items[] = {
204204
MenuCommand (N_("By File Path"), nullptr, NO_KEY, sort_path),
205205
MenuCommand (N_("By Custom Title"), nullptr, NO_KEY, sort_custom_title),
206206
MenuCommand (N_("By Comment"), nullptr, NO_KEY, sort_comment),
207-
MenuCommand (N_("By Disc Number"), nullptr, NO_KEY, sort_disc)
207+
MenuCommand (N_("By Disc Number"), nullptr, NO_KEY, sort_disc),
208+
MenuCommand (N_("By File Created"), nullptr, NO_KEY, sort_file_created),
209+
MenuCommand (N_("By File Modified"), nullptr, NO_KEY, sort_file_modified)
208210
};
209211

210212
static const AudguiMenuItem sort_selected_items[] = {
@@ -220,7 +222,9 @@ static const AudguiMenuItem sort_selected_items[] = {
220222
MenuCommand (N_("By File Path"), nullptr, NO_KEY, sort_sel_path),
221223
MenuCommand (N_("By Custom Title"), nullptr, NO_KEY, sort_sel_custom_title),
222224
MenuCommand (N_("By Comment"), nullptr, NO_KEY, sort_comment),
223-
MenuCommand (N_("By Disc Number"), nullptr, NO_KEY, sort_sel_disc)
225+
MenuCommand (N_("By Disc Number"), nullptr, NO_KEY, sort_sel_disc),
226+
MenuCommand (N_("By File Created"), nullptr, NO_KEY, sort_sel_file_created),
227+
MenuCommand (N_("By File Modified"), nullptr, NO_KEY, sort_sel_file_modified)
224228
};
225229

226230
static const AudguiMenuItem playlist_sort_items[] = {

0 commit comments

Comments
 (0)