mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 12:44:53 +00:00
Fix Flip command when ENABLE_UI is off
This commit is contained in:
parent
c49c6ae068
commit
1b08d5248c
@ -75,6 +75,7 @@ void FlipCommand::onExecute(Context* ctx)
|
|||||||
|
|
||||||
CelList cels;
|
CelList cels;
|
||||||
if (m_flipMask) {
|
if (m_flipMask) {
|
||||||
|
#ifdef ENABLE_UI
|
||||||
// If we want to flip the visible mask we can go to
|
// If we want to flip the visible mask we can go to
|
||||||
// MovingPixelsState (even when the range is enabled, because now
|
// MovingPixelsState (even when the range is enabled, because now
|
||||||
// PixelsMovement support ranges).
|
// PixelsMovement support ranges).
|
||||||
@ -88,6 +89,7 @@ void FlipCommand::onExecute(Context* ctx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
auto range = site.range();
|
auto range = site.range();
|
||||||
if (range.enabled()) {
|
if (range.enabled()) {
|
||||||
@ -100,8 +102,12 @@ void FlipCommand::onExecute(Context* ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cels.empty()) {
|
if (cels.empty()) {
|
||||||
StatusBar::instance()->showTip(
|
#ifdef ENABLE_UI
|
||||||
1000, Strings::statusbar_tips_all_layers_are_locked());
|
if (ctx->isUIAvailable()) {
|
||||||
|
StatusBar::instance()->showTip(
|
||||||
|
1000, Strings::statusbar_tips_all_layers_are_locked());
|
||||||
|
}
|
||||||
|
#endif // ENABLE_UI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user