wallpaper: Remove duplicate code

This commit is contained in:
Dylan Araps 2018-01-02 10:33:23 +11:00
parent 296d3f54b9
commit c46c208561
2 changed files with 2 additions and 5 deletions

View File

@ -20,7 +20,7 @@ class Color:
@property
def rgb(self):
"""Convert a hex color to rgb."""
return "%s,%s,%s" % (*hex_to_rgb(self.hex_color))
return "%s,%s,%s" % (*hex_to_rgb(self.hex_color),)
@property
def xrgba(self):

View File

@ -129,11 +129,8 @@ def change(img):
elif OS == "Windows":
set_win_wallpaper(img)
elif desktop:
set_desktop_wallpaper(desktop, img)
else:
set_wm_wallpaper(img)
set_desktop_wallpaper(desktop, img)
print("wallpaper: Set the new wallpaper.")