Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
coderkun | 6ba8bc550f | ||
coderkun | 21bd0f5832 |
|
@ -10,7 +10,7 @@
|
|||
<property name="type-hint">dialog</property>
|
||||
<property name="gravity">center</property>
|
||||
<property name="program-name">CoverGrid</property>
|
||||
<property name="version">3.2</property>
|
||||
<property name="version">3.2.1</property>
|
||||
<property name="comments" translatable="yes">CoverGrid is a client for the Music Player Daemon, focusing on albums instead of single tracks.</property>
|
||||
<property name="website">http://www.suruatoel.xyz/codes/mcg</property>
|
||||
<property name="logo-icon-name">xyz.suruatoel.mcg</property>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
project('mcg',
|
||||
version: '3.2',
|
||||
version: '3.2.1',
|
||||
meson_version: '>= 0.59.0',
|
||||
default_options: [
|
||||
'warning_level=2',
|
||||
|
|
|
@ -120,6 +120,13 @@ class LibraryToolbar(Gtk.ButtonBox):
|
|||
button.set_active(True)
|
||||
|
||||
|
||||
def set_sort_type(self, sort_type):
|
||||
if sort_type:
|
||||
self.toolbar_sort_order_button.set_active(True)
|
||||
else:
|
||||
self.toolbar_sort_order_button.set_active(False)
|
||||
|
||||
|
||||
|
||||
|
||||
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/library-panel.ui')
|
||||
|
@ -406,12 +413,11 @@ class LibraryPanel(Gtk.Stack):
|
|||
|
||||
def set_sort_type(self, sort_type):
|
||||
if self._sort_type != sort_type:
|
||||
self._toolbar.set_sort_type(sort_type)
|
||||
if sort_type:
|
||||
sort_type_gtk = Gtk.SortType.DESCENDING
|
||||
self.toolbar_sort_order_button.set_active(True)
|
||||
else:
|
||||
sort_type_gtk = Gtk.SortType.ASCENDING
|
||||
self.toolbar_sort_order_button.set_active(False)
|
||||
if self._sort_type != sort_type_gtk:
|
||||
self._sort_type = sort_type_gtk
|
||||
self._library_grid_model.set_sort_column_id(2, sort_type)
|
||||
|
|
Loading…
Reference in a new issue