From 70509275405d2a5c5e94743786f03b17ef2051f2 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Tue, 19 Sep 2023 11:19:39 -0500 Subject: Default profile settings (#1869) * Fix archive parsing and BSA invalidation --- src/createinstancedialogpages.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/createinstancedialogpages.h') diff --git a/src/createinstancedialogpages.h b/src/createinstancedialogpages.h index d9751a52..ce525635 100644 --- a/src/createinstancedialogpages.h +++ b/src/createinstancedialogpages.h @@ -110,6 +110,10 @@ public: // virtual CreateInstanceDialog::Paths selectedPaths() const; + // returns the profile settings + // + virtual CreateInstanceDialog::ProfileSettings profileSettings() const; + protected: Ui::CreateInstanceDialog* ui; CreateInstanceDialog& m_dlg; @@ -557,6 +561,21 @@ private: void setIfEmpty(QLineEdit* e, const QString& path, bool force); }; +// default settings for profiles page; allow the user to set their preferred +// defaults for the profile options +// +class ProfilePage : public Page +{ +public: + ProfilePage(CreateInstanceDialog& dlg); + + // always returns true, options are boolean + // + bool ready() const override; + + CreateInstanceDialog::ProfileSettings profileSettings() const override; +}; + // nexus connection page; this reuses the ui found in the settings dialog and // is skipped if there's already an api key in the credentials manager // -- cgit v1.3.1