fix srutct code
This commit is contained in:
4
Main.qml
4
Main.qml
@@ -87,9 +87,7 @@ ApplicationWindow {
|
||||
|
||||
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 var consoleLog: tabs.currentIndex === 0 ? UpdateManager.updateLog
|
||||
: tabs.currentIndex === 1 ? UpdateManager.installLog
|
||||
: UpdateManager.removalLog
|
||||
readonly property var consoleLog: tabs.currentIndex === 0 ? UpdateManager.updateLog : tabs.currentIndex === 1 ? UpdateManager.installLog : UpdateManager.removalLog
|
||||
|
||||
Components.ConsoleBar {
|
||||
id: consoleBar
|
||||
|
||||
@@ -13,6 +13,7 @@ void UpdateManager::checkUpdates()
|
||||
set_packages({});
|
||||
set_is_checking(true);
|
||||
|
||||
// Ищет в системе исполняемый файл с именем checkupdates и возвращает его абсолютный путь. Если файл не найден, возвращается пустая строка.
|
||||
const QString program = QStandardPaths::findExecutable(QStringLiteral("checkupdates"));
|
||||
if (program.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user