mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix build with Xcode.
This commit is contained in:
parent
122234f55c
commit
588d5ad695
2 changed files with 3 additions and 3 deletions
|
@ -24,8 +24,8 @@ void PowerSavingBox(not_null<Ui::GenericBox*> box) {
|
|||
|
||||
box->addRow(std::move(checkboxes), {});
|
||||
|
||||
box->addButton(tr::lng_settings_save(), [=] {
|
||||
Set(PowerSaving::kAll & ~getResult());
|
||||
box->addButton(tr::lng_settings_save(), [=, collect = getResult] {
|
||||
Set(PowerSaving::kAll & ~collect());
|
||||
Core::App().saveSettingsDelayed();
|
||||
box->closeBox();
|
||||
});
|
||||
|
|
|
@ -29,7 +29,7 @@ using Flags = base::flags<Flag>;
|
|||
[[nodiscard]] rpl::producer<Flags> Changes();
|
||||
[[nodiscard]] rpl::producer<Flags> Value();
|
||||
[[nodiscard]] rpl::producer<bool> Value(Flag flag);
|
||||
[[nodiscard]] void Set(Flags flags);
|
||||
void Set(Flags flags);
|
||||
|
||||
[[nodiscard]] inline bool On(Flag flag) {
|
||||
return Current() & flag;
|
||||
|
|
Loading…
Add table
Reference in a new issue