use enums for tracklist size and sort order values
This commit is contained in:
parent
99fa2be42f
commit
f38737e6ba
5 changed files with 53 additions and 39 deletions
16
mcg/utils.py
16
mcg/utils.py
|
|
@ -52,3 +52,19 @@ class Utils:
|
|||
filetype = 'jpeg'
|
||||
pixbuf.savev(cache.create_filename(album), filetype, [], [])
|
||||
return pixbuf
|
||||
|
||||
|
||||
|
||||
|
||||
class TracklistSize:
|
||||
LARGE = 0
|
||||
SMALL = 1
|
||||
HIDDEN = 2
|
||||
|
||||
|
||||
|
||||
|
||||
class SortOrder:
|
||||
ARTIST = 0
|
||||
TITLE = 1
|
||||
YEAR = 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue