Update zoom level in status bar correctly when we switch between sprites

This commit is contained in:
David Capello 2019-05-17 17:53:46 -03:00
parent 1873ec182c
commit 54a1b1d67e

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2018 Igara Studio S.A.
// Copyright (C) 2018-2019 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
@ -786,6 +786,10 @@ void StatusBar::onActiveSiteChange(const Site& site)
// Current frame
m_currentFrame->setTextf(
"%d", site.frame()+docPref.timeline.firstFrame());
// Zoom level
if (current_editor)
updateFromEditor(current_editor);
}
else {
m_docControls->setVisible(false);