From 7a63f6d3fec62732ba65fd60fe2f6a15124a615b Mon Sep 17 00:00:00 2001 From: Collecting Date: Fri, 26 Dec 2025 02:22:33 +0000 Subject: [PATCH] feat(updater): Improved Updater System w/ Automation & SCM Logic Changes Signed-off-by: Collecting --- src/citron/updater/updater_dialog.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/citron/updater/updater_dialog.h b/src/citron/updater/updater_dialog.h index acc83b815..7f4cda746 100644 --- a/src/citron/updater/updater_dialog.h +++ b/src/citron/updater/updater_dialog.h @@ -5,9 +5,11 @@ #include #include +#include #include "citron/updater/updater_service.h" class QString; +class QTimer; namespace Ui { class UpdaterDialog; @@ -15,9 +17,8 @@ namespace Ui { namespace Updater { - // Declarations for helper functions + // Helper function declarations to satisfy -Werror=missing-declarations QString FormatDateTimeString(const std::string& iso_string); - QString FormatChangelog(const std::string& raw_changelog); class UpdaterDialog : public QDialog { @@ -29,8 +30,11 @@ namespace Updater { void CheckForUpdates(); - private slots: + // Public methods for main.cpp to trigger the automated update flow void OnUpdateCheckCompleted(bool has_update, const Updater::UpdateInfo& update_info); + void StartUpdateImmediate(); + + private slots: void OnUpdateDownloadProgress(int percentage, qint64 bytes_received, qint64 bytes_total); void OnUpdateInstallProgress(int percentage, const QString& current_file); void OnUpdateCompleted(Updater::UpdaterService::UpdateResult result, const QString& message);