gui: Add better sorting display
I show the column that is currently being sorted by. Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
parent
b571018a53
commit
946b1a1bc9
|
@ -399,11 +399,11 @@ void OcarinaPage::on_column_clicked(unsigned int col_index)
|
|||
{
|
||||
Gtk::Label *sorting;
|
||||
get_builder()->get_widget("o_sorting_indicator", sorting);
|
||||
sorting->set_text("<*>");
|
||||
|
||||
if (sort_timeout_count == 0)
|
||||
if (sort_timeout_count == 0) {
|
||||
sorting->set_text("Sorting within " + page_view.get_column(col_index)->get_title());
|
||||
model->queue->reset_sort(q_col_sorts[col_index]);
|
||||
else
|
||||
} else
|
||||
model->queue->add_sort(q_col_sorts[col_index]);
|
||||
sort_timeout_count++;
|
||||
Glib::signal_timeout().connect_seconds_once(
|
||||
|
|
Loading…
Reference in New Issue