Skip to content

Commit

Permalink
try to fix libc++ compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Digitalone1 committed Apr 1, 2024
1 parent 7a98084 commit ea5ab6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libportal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ void on_request_background_called(GObject* source, GAsyncResult* result, gpointe
error_message = error->message;
if (error->code == 19) {
// 19 seemingly corresponds to the "cancelled" error which actually means the permission is in a revoked state.
reason = "Background access has been denied";
explanation = "Please allow Easy Effects to ask again with Flatpak permission-reset " + tags::app::id;
reason += "Background access has been denied";
explanation += "Please allow Easy Effects to ask again with Flatpak permission-reset " + tags::app::id;
} else {
reason = "Generic error";
explanation = "Please verify your system has a XDG Background Portal implementation running and working.";
reason += "Generic error";
explanation += "Please verify your system has a XDG Background Portal implementation running and working.";
}
} else {
error_message = "unknown reason";
reason = "Unknown error";
explanation = "No explanation could be provided, error was null";
}

util::debug("A background request failed: " + error_message;
util::debug("A background request failed: " + error_message);
util::warning(reason);
util::warning(explanation);

Expand Down

0 comments on commit ea5ab6a

Please sign in to comment.