Skip to content

Commit

Permalink
show mic permission warning if unable to find mic in snap install
Browse files Browse the repository at this point in the history
/fix animation lag
  • Loading branch information
keshavbhatt committed Apr 15, 2021
1 parent 3cda753 commit 4aeb350
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/recordingpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ void RecordingPage::animate()
QGraphicsOpacityEffect *eff = new QGraphicsOpacityEffect(this);
this->setGraphicsEffect(eff);

this->hide();
QPropertyAnimation *a = new QPropertyAnimation(this->graphicsEffect(),"opacity");
a->setDuration(400);
a->setStartValue(0);
Expand All @@ -53,7 +52,7 @@ void RecordingPage::animate()
eff->deleteLater();
});
this->show();

qApp->processEvents();
}


Expand Down Expand Up @@ -106,7 +105,6 @@ void RecordingPage::startRecording(QString selectedDevice)
connect(recordingProcess,&QProcess::readyRead,[=]()
{
QString bytes = recordingProcess->readAll();
//qDebug()<<bytes;
if(QString(bytes).contains("Time",Qt::CaseInsensitive))
{
ui->statusLabel->setText(QString(bytes).split(";").first().trimmed().simplified());
Expand All @@ -125,7 +123,7 @@ void RecordingPage::startRecording(QString selectedDevice)
QFileInfo info(recordingFileName);
if(info.size() < 800)
{
QMessageBox::critical(this,"Error","Recorded file is empty.");
QMessageBox::critical(this,"Error","Recorded file is empty.\nIf you installed using snapd make sure you enable audio-record permission.");
stopRecording();
emit back();
}
Expand Down

0 comments on commit 4aeb350

Please sign in to comment.