mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-09-11 15:56:04 +03:00
Added back support for non-URI image-paths for notifications. Fixes #356
This commit is contained in:
parent
605f195585
commit
e498068ef5
@ -680,8 +680,18 @@ namespace SwayNotificationCenter {
|
||||
|
||||
var img_path_exists = File.new_for_uri (
|
||||
param.image_path ?? "").query_exists ();
|
||||
if (param.image_path != null && !img_path_exists) {
|
||||
// Check if it's not a URI
|
||||
img_path_exists = File.new_for_path (
|
||||
param.image_path ?? "").query_exists ();
|
||||
}
|
||||
var app_icon_exists = File.new_for_uri (
|
||||
app_icon_uri ?? "").query_exists ();
|
||||
if (app_icon_uri != null && !img_path_exists) {
|
||||
// Check if it's not a URI
|
||||
app_icon_exists = File.new_for_path (
|
||||
app_icon_uri ?? "").query_exists ();
|
||||
}
|
||||
|
||||
// Get the image CSS corner radius in pixels
|
||||
int radius = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user