feat: able to show file name in window title

This commit is contained in:
2023-05-29 23:59:45 +08:00
parent 5aeb0f821f
commit 6a992f4c1f
3 changed files with 14 additions and 0 deletions

View File

@ -99,6 +99,7 @@ void PlaylistManager::setCurrentFile(const QString & filePath)
break;
}
emit currentIndexChanged(m_currentIndex);
emit loaded(m_playlist.count());
}
@ -106,6 +107,7 @@ void PlaylistManager::setCurrentIndex(int index)
{
if (index < 0 || index >= m_playlist.count()) return;
m_currentIndex = index;
emit currentIndexChanged(m_currentIndex);
}
int PlaylistManager::appendFile(const QString &filePath)