mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-06-26 06:29:57 +00:00
fix: if background picture is a path and not uri
This commit is contained in:
parent
8a515e2c0c
commit
e1005c7ddd
|
@ -104,9 +104,9 @@ class GradienceMainWindow(Adw.ApplicationWindow):
|
|||
"picture-uri")
|
||||
buglog(picture_uri)
|
||||
if picture_uri.startswith("file://"):
|
||||
self.monet_image_file = Gio.File.new_for_path(picture_uri)
|
||||
else:
|
||||
self.monet_image_file = Gio.File.new_for_uri(picture_uri)
|
||||
else:
|
||||
self.monet_image_file = Gio.File.new_for_path(picture_uri)
|
||||
image_basename = self.monet_image_file.get_basename()
|
||||
buglog(image_basename)
|
||||
self.monet_image_file = self.monet_image_file.get_path()
|
||||
|
|
Loading…
Reference in a new issue