mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added ability to save and restore items state in photo editor.
This commit is contained in:
@@ -267,6 +267,9 @@ PhotoEditorControls::PhotoEditorControls(
|
||||
|
||||
_mode.changes(
|
||||
) | rpl::start_with_next([=](const PhotoEditorMode &mode) {
|
||||
if (mode.mode == PhotoEditorMode::Mode::Out) {
|
||||
return;
|
||||
}
|
||||
const auto animated = (_paintBottomButtons->isVisible()
|
||||
== _transformButtons->isVisible())
|
||||
? anim::type::instant
|
||||
|
||||
Reference in New Issue
Block a user