mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix Shift+Enter to play animation in Preview window (fix #2249)
This commit is contained in:
parent
062ae58d9e
commit
302dcdc7cf
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user