2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve export progress / finished design.

This commit is contained in:
John Preston
2018-06-20 16:54:13 +01:00
parent 329db0d8e9
commit e8dd277a00
11 changed files with 149 additions and 41 deletions

View File

@@ -1693,7 +1693,8 @@ void MainWidget::setCurrentExportView(Export::View::PanelController *view) {
if (_currentExportView) {
_currentExportView->progressState(
) | rpl::start_with_next([=](Export::View::Content &&data) {
if (data.rows.empty()) {
if (!data.rows.empty()
&& data.rows[0].id == Export::View::Content::kDoneId) {
destroyExportTopBar();
} else if (!_exportTopBar) {
createExportTopBar(std::move(data));