mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
small style fix in "Settings"
This commit is contained in:
parent
7e1fd49b85
commit
52d2eebede
@ -927,7 +927,7 @@ class Settings(Gio.Settings):
|
|||||||
cursor_watch=GObject.Property(type=bool, default=False)
|
cursor_watch=GObject.Property(type=bool, default=False)
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(schema=self.BASE_KEY)
|
super().__init__(schema=self.BASE_KEY)
|
||||||
self._profiles=[self.get_child("profile1"), self.get_child("profile2"), self.get_child("profile3")]
|
self._profiles=(self.get_child("profile1"), self.get_child("profile2"), self.get_child("profile3"))
|
||||||
|
|
||||||
def array_append(self, vtype, key, value): # append to Gio.Settings array
|
def array_append(self, vtype, key, value): # append to Gio.Settings array
|
||||||
array=self.get_value(key).unpack()
|
array=self.get_value(key).unpack()
|
||||||
@ -946,9 +946,9 @@ class Settings(Gio.Settings):
|
|||||||
|
|
||||||
def get_artist_type(self):
|
def get_artist_type(self):
|
||||||
if self.get_boolean("use-album-artist"):
|
if self.get_boolean("use-album-artist"):
|
||||||
return ("albumartist")
|
return "albumartist"
|
||||||
else:
|
else:
|
||||||
return ("artist")
|
return "artist"
|
||||||
|
|
||||||
def get_lib_path(self):
|
def get_lib_path(self):
|
||||||
lib_path=self.get_active_profile().get_string("path")
|
lib_path=self.get_active_profile().get_string("path")
|
||||||
|
Loading…
Reference in New Issue
Block a user