mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Move some settings from global to Session.
This commit is contained in:
@@ -441,20 +441,6 @@ void SetupPerformance(
|
||||
}
|
||||
session->saveSettingsDelayed();
|
||||
}, container->lifetime());
|
||||
|
||||
AddButton(
|
||||
container,
|
||||
tr::lng_settings_loop_stickers(),
|
||||
st::settingsButton
|
||||
)->toggleOn(
|
||||
rpl::single(session->settings().loopAnimatedStickers())
|
||||
)->toggledValue(
|
||||
) | rpl::filter([=](bool enabled) {
|
||||
return enabled != session->settings().loopAnimatedStickers();
|
||||
}) | rpl::start_with_next([=](bool enabled) {
|
||||
session->settings().setLoopAnimatedStickers(enabled);
|
||||
session->saveSettingsDelayed();
|
||||
}, container->lifetime());
|
||||
}
|
||||
|
||||
void SetupSystemIntegration(
|
||||
|
Reference in New Issue
Block a user