fix spotify tray icon
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user