diff options
author | flow <flowlnlnln@gmail.com> | 2022-10-14 14:22:13 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-12-06 17:00:29 -0300 |
commit | 08d008a5aa7379efe76201250b2511b66665d9a7 (patch) | |
tree | 21db69a4b55809770293d5459ade1507ce5b7696 /launcher/InstanceTask.h | |
parent | 9e17ff884f84601bd6e48721b32c2af51ca8ee7d (diff) | |
download | PrismLauncher-08d008a5aa7379efe76201250b2511b66665d9a7.tar.gz PrismLauncher-08d008a5aa7379efe76201250b2511b66665d9a7.tar.bz2 PrismLauncher-08d008a5aa7379efe76201250b2511b66665d9a7.zip |
refactor: abstract away update confirmation dialog
... so that we can avoid code duplication.
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/InstanceTask.h')
-rw-r--r-- | launcher/InstanceTask.h | 2 |
1 files changed, 2 insertions, 0 deletions
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: |