mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Remove an unneeded intermediate variable
This commit is contained in:
parent
716cc6ef9e
commit
9019a2cb08
1 changed files with 8 additions and 8 deletions
|
@ -274,14 +274,14 @@ void GetInhibited(Fn<void(bool)> callback) {
|
|||
[=](const Glib::RefPtr<Gio::AsyncResult> &result) {
|
||||
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
||||
Noexcept([&] {
|
||||
const auto value = connection->call_finish(
|
||||
result
|
||||
).get_child(
|
||||
0
|
||||
).get_dynamic<Glib::Variant<bool>>(
|
||||
).get();
|
||||
|
||||
callback(value);
|
||||
callback(
|
||||
connection->call_finish(
|
||||
result
|
||||
).get_child(
|
||||
0
|
||||
).get_dynamic<Glib::Variant<bool>>(
|
||||
).get()
|
||||
);
|
||||
}, [&] {
|
||||
callback(false);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue