Skip to content

Commit

Permalink
Update AboutThis.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ic005k committed Aug 14, 2024
1 parent 56cc5ca commit 7215d53
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/AboutThis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AboutThis::AboutThis(QWidget *parent) : QDialog(parent), ui(new Ui::AboutThis) {
this->installEventFilter(this);
ui->lblLogo->installEventFilter(this);
ui->btnDownloadUP->setEnabled(false);
ui->btnDownloadUP->hide();
ui->lblAbout->adjustSize();
ui->lblAbout->setWordWrap(true);
Expand Down Expand Up @@ -176,6 +176,7 @@ int AboutThis::parse_UpdateJSON(QString str) {
s_link = Url;

qDebug() << "s_link = " << s_link << Url;
ui->btnDownloadUP->show();

QString Verison = root_Obj.value("tag_name").toString();
QString UpdateTime = root_Obj.value("published_at").toString();
Expand Down Expand Up @@ -240,10 +241,7 @@ void AboutThis::show_download() {
}
}

void AboutThis::on_btnCheckUpdate_clicked() {
CheckUpdate();
ui->btnDownloadUP->setEnabled(true);
}
void AboutThis::on_btnCheckUpdate_clicked() { CheckUpdate(); }

void AboutThis::on_btnDownloadUP_clicked() {
mw_one->m_Reader->setPdfViewVisible(false);
Expand Down

0 comments on commit 7215d53

Please sign in to comment.