mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-13 01:13:22 +00:00
Fix crash right-clicking play button in the preview window is hidden
Regression introduced in 30a88c8e3d5e2c330a0ab969e36bab839aaba9ba
This commit is contained in:
parent
e865374805
commit
63a387d804
@ -100,7 +100,9 @@ bool PlayPreviewAnimationCommand::onEnabled(Context* ctx)
|
||||
bool PlayPreviewAnimationCommand::onChecked(Context* ctx)
|
||||
{
|
||||
PreviewEditorWindow* preview = App::instance()->mainWindow()->getPreviewEditor();
|
||||
return (preview && preview->previewEditor()->isPlaying());
|
||||
return (preview &&
|
||||
preview->previewEditor() &&
|
||||
preview->previewEditor()->isPlaying());
|
||||
}
|
||||
|
||||
void PlayPreviewAnimationCommand::onExecute(Context* ctx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user