mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
refactoring: naming notify
This commit is contained in:
@@ -102,15 +102,19 @@ void MainWindow::LoadComplete()
|
||||
ui->startButton->setEnabled(true);
|
||||
}
|
||||
|
||||
void MainWindow::SetNeedUpdate(bool flag,quint64 size)
|
||||
void MainWindow::SetNeedUpdate(bool flag,quint64 size, quint64 fileCount)
|
||||
{
|
||||
maxBytesAvailable = 0;
|
||||
if(flag){
|
||||
quint64 megaByte = size / (1024 * 1024);
|
||||
QString result = "Доступно обновление: " + QString::number(megaByte) + " мегабайт";
|
||||
QString availableSizeText;
|
||||
|
||||
if (flag){
|
||||
QString result = Tools::convertFileSize(size);
|
||||
result += "Количество файлов: " + QString::number(fileCount);
|
||||
ui->inlineTextDebug->setText(result);
|
||||
maxBytesAvailable = size;
|
||||
}else{
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->inlineTextDebug->setText("Установлена последняя версия");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user