Hide "Play subtags" option in File > Export if there are no tags (fix #4308)

This commit is contained in:
David Capello 2024-03-12 15:54:05 -03:00
parent 30f55d196b
commit e129fefb2e

View File

@ -228,7 +228,9 @@ void ExportFileWindow::updateAniDir()
void ExportFileWindow::updatePlaySubtags()
{
std::string framesValue = this->framesValue();
playSubtags()->setVisible(framesValue != kSelectedFrames);
playSubtags()->setVisible(framesValue != kSelectedFrames &&
// We hide the option if there is no tag
!m_doc->sprite()->tags().empty());
layout();
}