mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
hide update button when there is no updater
This commit is contained in:
parent
6ccdb7a760
commit
9bcabc953e
@ -215,6 +215,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
ui->toolButton_routing->setMenu(ui->menuRouting_Menu);
|
||||
ui->menubar->setVisible(false);
|
||||
connect(ui->toolButton_update, &QToolButton::clicked, this, [=] { runOnNewThread([=] { CheckUpdate(); }); });
|
||||
if (!QFile::exists(QApplication::applicationDirPath() + "/updater") && !QFile::exists(QApplication::applicationDirPath() + "/updater.exe"))
|
||||
{
|
||||
ui->toolButton_update->hide();
|
||||
}
|
||||
|
||||
// setup connection UI
|
||||
setupConnectionList();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user