move c header back to astal-mpris.h

This commit is contained in:
Aylur
2024-07-18 12:18:16 +02:00
parent 2e6764950a
commit 0bfd3a2cb4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ if get_option('lib')
meson.project_name(),
sources,
dependencies: deps,
vala_header: meson.project_name().replace('astal-', '') + '.h',
vala_header: meson.project_name() + '.h',
vala_vapi: meson.project_name() + '-' + api_version + '.vapi',
vala_gir: gir,
version: meson.project_version(),
+2 -2
View File
@@ -265,7 +265,7 @@ public class Player : Object {
}
private async void cache_cover() {
if (art_url == null)
if (art_url == null || art_url == "")
return;
var file = File.new_for_uri(art_url);
@@ -295,7 +295,7 @@ public class Player : Object {
file.copy_async.end(res);
cover_art = path;
} catch (Error err) {
critical("Failed to cache cover art %s", err.message);
critical("Failed to cache cover art with url \"%s\": %s", art_url, err.message);
}
}
);