Merge pull request #259 from trilene/voip

Stop SendFile and Call buttons swapping places on file upload
This commit is contained in:
DeepBlueV7.X 2020-08-17 22:41:08 +00:00 committed by GitHub
commit b5d406ad80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -633,7 +633,7 @@ TextInputWidget::showUploadSpinner()
topLayout_->removeWidget(sendFileBtn_); topLayout_->removeWidget(sendFileBtn_);
sendFileBtn_->hide(); sendFileBtn_->hide();
topLayout_->insertWidget(0, spinner_); topLayout_->insertWidget(1, spinner_);
spinner_->start(); spinner_->start();
} }
@ -641,7 +641,7 @@ void
TextInputWidget::hideUploadSpinner() TextInputWidget::hideUploadSpinner()
{ {
topLayout_->removeWidget(spinner_); topLayout_->removeWidget(spinner_);
topLayout_->insertWidget(0, sendFileBtn_); topLayout_->insertWidget(1, sendFileBtn_);
sendFileBtn_->show(); sendFileBtn_->show();
spinner_->stop(); spinner_->stop();
} }