Qt: properly hide and show progress indicator

This was previously always shown, since we never really re-used the progress dialogs.
This commit is contained in:
Megamouse 2024-05-04 23:09:02 +02:00
parent 281f248d91
commit 5745862fa8
4 changed files with 43 additions and 10 deletions

View file

@ -46,6 +46,13 @@ void progress_indicator::show(QWindow* window)
#endif
}
void progress_indicator::hide()
{
#ifdef HAS_QT_WIN_STUFF
m_tb_button->progress()->hide();
#endif
}
int progress_indicator::value() const
{
#ifdef HAS_QT_WIN_STUFF