mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Strip notification service start error
This commit is contained in:
parent
1b589a35cf
commit
e07d53725c
1 changed files with 5 additions and 4 deletions
|
@ -100,14 +100,15 @@ void StartServiceAsync(Gio::DBusConnection connection, Fn<void()> callback) {
|
|||
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
||||
// get the error if any
|
||||
if (const auto ret = result(); !ret) {
|
||||
const auto error = static_cast<GLib::Error*>(
|
||||
const auto &error = *static_cast<GLib::Error*>(
|
||||
ret.error().get());
|
||||
|
||||
if (error->gobj_()->domain != G_DBUS_ERROR
|
||||
|| error->code_()
|
||||
if (error.gobj_()->domain != G_DBUS_ERROR
|
||||
|| error.code_()
|
||||
!= G_DBUS_ERROR_SERVICE_UNKNOWN) {
|
||||
Gio::DBusErrorNS_::strip_remote_error(error);
|
||||
LOG(("Native Notification Error: %1").arg(
|
||||
error->what()));
|
||||
error.message_().c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue