mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
[img-editor] Removed built-in palette color when width is too small.
This commit is contained in:
@@ -516,11 +516,11 @@ rpl::producer<> PhotoEditorControls::cancelRequests() const {
|
||||
_transformCancel->clicks() | rpl::to_empty,
|
||||
_paintCancel->clicks() | rpl::to_empty,
|
||||
_keyPresses.events(
|
||||
) | rpl::filter([=](not_null<QKeyEvent*> e) {
|
||||
const auto key = e->key();
|
||||
return (key == Qt::Key_Escape)
|
||||
&& !_toggledBarAnimation.animating();
|
||||
}) | rpl::to_empty);
|
||||
) | rpl::filter([=](not_null<QKeyEvent*> e) {
|
||||
const auto key = e->key();
|
||||
return (key == Qt::Key_Escape)
|
||||
&& !_toggledBarAnimation.animating();
|
||||
}) | rpl::to_empty);
|
||||
}
|
||||
|
||||
rpl::producer<float64> PhotoEditorControls::aspectRatioChanges() const {
|
||||
|
||||
Reference in New Issue
Block a user