Fix Shift+Enter to play animation in Preview window (fix #2249)

This commit is contained in:
David Capello 2020-03-02 14:49:38 -03:00
parent 062ae58d9e
commit 302dcdc7cf

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2018 Igara Studio S.A.
// Copyright (C) 2018-2020 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
@ -100,6 +100,7 @@ public:
void setPlaying(bool state) {
m_isPlaying = state;
setupIcons();
invalidate();
}
obs::signal<void()> Popup;
@ -209,8 +210,7 @@ void PreviewEditorWindow::setPreviewEnabled(bool state)
void PreviewEditorWindow::pressPlayButton()
{
m_playButton->setSelected(
!m_playButton->isSelected());
m_playButton->setPlaying(!m_playButton->isPlaying());
onPlayClicked();
}