fix spotify tray icon

This commit is contained in:
2025-12-10 01:41:34 +01:00
parent 70a271fb8b
commit 5341faeed2
4 changed files with 15 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
#include <gdkmm/pixbuf.h>
#include <gdkmm/texture.h>
#include <gio/gdbusmenumodel.h>
#include <gio/gio.h>
#include <algorithm>
#include <cstring>
@@ -533,7 +534,10 @@ void TrayService::contextMenu(const std::string &id, int32_t x, int32_t y)
if (error)
{
std::cerr << "[TrayService] ContextMenu failed for " << id << ": " << error->message << std::endl;
if (!(error->domain == G_DBUS_ERROR && error->code == G_DBUS_ERROR_UNKNOWN_METHOD))
{
std::cerr << "[TrayService] ContextMenu failed for " << id << ": " << error->message << std::endl;
}
g_error_free(error);
}
}