fix srutct code

This commit is contained in:
2026-11-15 17:54:36 +03:00
parent a0e43c1a01
commit 335d7e6ba7
2 changed files with 2 additions and 3 deletions

View File

@@ -87,9 +87,7 @@ ApplicationWindow {
readonly property string consoleTitle: tabs.currentIndex === 0 ? "Консоль обновления" : tabs.currentIndex === 1 ? "Консоль установки" : "Консоль удаления" readonly property string consoleTitle: tabs.currentIndex === 0 ? "Консоль обновления" : tabs.currentIndex === 1 ? "Консоль установки" : "Консоль удаления"
readonly property string consoleStatus: Utils.statusConsole(tabs.currentIndex, UpdateManager.isUpdating, UpdateManager.isInstalling, UpdateManager.isRemoving) readonly property string consoleStatus: Utils.statusConsole(tabs.currentIndex, UpdateManager.isUpdating, UpdateManager.isInstalling, UpdateManager.isRemoving)
readonly property var consoleLog: tabs.currentIndex === 0 ? UpdateManager.updateLog readonly property var consoleLog: tabs.currentIndex === 0 ? UpdateManager.updateLog : tabs.currentIndex === 1 ? UpdateManager.installLog : UpdateManager.removalLog
: tabs.currentIndex === 1 ? UpdateManager.installLog
: UpdateManager.removalLog
Components.ConsoleBar { Components.ConsoleBar {
id: consoleBar id: consoleBar

View File

@@ -13,6 +13,7 @@ void UpdateManager::checkUpdates()
set_packages({}); set_packages({});
set_is_checking(true); set_is_checking(true);
// Ищет в системе исполняемый файл с именем checkupdates и возвращает его абсолютный путь. Если файл не найден, возвращается пустая строка.
const QString program = QStandardPaths::findExecutable(QStringLiteral("checkupdates")); const QString program = QStandardPaths::findExecutable(QStringLiteral("checkupdates"));
if (program.isEmpty()) if (program.isEmpty())
{ {