From 08d008a5aa7379efe76201250b2511b66665d9a7 Mon Sep 17 00:00:00 2001 From: flow Date: Fri, 14 Oct 2022 14:22:13 -0300 Subject: refactor: abstract away update confirmation dialog ... so that we can avoid code duplication. Signed-off-by: flow --- launcher/InstanceTask.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'launcher/InstanceTask.h') diff --git a/launcher/InstanceTask.h b/launcher/InstanceTask.h index e35533fc..178fbc45 100644 --- a/launcher/InstanceTask.h +++ b/launcher/InstanceTask.h @@ -6,6 +6,8 @@ /* Helpers */ enum class InstanceNameChange { ShouldChange, ShouldKeep }; [[nodiscard]] InstanceNameChange askForChangingInstanceName(QWidget* parent, const QString& old_name, const QString& new_name); +enum class ShouldUpdate { Update, SkipUpdating, Cancel }; +[[nodiscard]] ShouldUpdate askIfShouldUpdate(QWidget* parent, QString original_version_name); struct InstanceName { public: -- cgit