mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
[=](const Glib::RefPtr<Gio::AsyncResult> &result) {
|
||||||
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
|
||||||
Noexcept([&] {
|
Noexcept([&] {
|
||||||
const auto value = connection->call_finish(
|
callback(
|
||||||
result
|
connection->call_finish(
|
||||||
).get_child(
|
result
|
||||||
0
|
).get_child(
|
||||||
).get_dynamic<Glib::Variant<bool>>(
|
0
|
||||||
).get();
|
).get_dynamic<Glib::Variant<bool>>(
|
||||||
|
).get()
|
||||||
callback(value);
|
);
|
||||||
}, [&] {
|
}, [&] {
|
||||||
callback(false);
|
callback(false);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue