feat: add server notify

This commit is contained in:
semenov
2025-01-09 12:59:10 +03:00
parent 43d0a48593
commit 8e7d22eb5c
34 changed files with 979 additions and 380 deletions

View File

@@ -46,11 +46,11 @@ void UpdateNotifyWidget::showWithFill()
void UpdateNotifyWidget::on_loadToServerButton_clicked()
{
if(versionContainer->getServerVersion() == baseNamePackage)
{
showWarning("В базовую версию загрузка невозможна!");
return;
}
// if(versionContainer->getServerVersion() == baseNamePackage)
// {
// showWarning("В базовую версию загрузка невозможна!");
// return;
// }
mainWindow->loadToServer();
}
@@ -65,15 +65,6 @@ void UpdateNotifyWidget::on_startWithCurrentChangesButton_clicked()
mainWindow->startUnityClient();
}
void UpdateNotifyWidget::showWarning(QString text)
{
QMessageBox warning;
warning.setText(text);
warning.setIcon(QMessageBox::Warning);
warning.setWindowTitle(tr("Ошибка"));
warning.exec();
}
UpdateNotifyWidget::~UpdateNotifyWidget()
{
delete ui;