diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-08-08 20:49:49 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-08-08 21:16:37 +0200 |
commit | f873cd5b1aa17fe8119f27cc5d9b9eba10bd42bf (patch) | |
tree | 34ddbf24cfed468811c289f2dbf790148ad9c337 /launcher/Application.h | |
parent | 75f92de8f8517142289dc76d071cfb4fa724598c (diff) | |
download | PrismLauncher-f873cd5b1aa17fe8119f27cc5d9b9eba10bd42bf.tar.gz PrismLauncher-f873cd5b1aa17fe8119f27cc5d9b9eba10bd42bf.tar.bz2 PrismLauncher-f873cd5b1aa17fe8119f27cc5d9b9eba10bd42bf.zip |
refactor: store current capabilities
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/Application.h')
-rw-r--r-- | launcher/Application.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/launcher/Application.h b/launcher/Application.h index 019c3c3d..05525bcf 100644 --- a/launcher/Application.h +++ b/launcher/Application.h @@ -162,7 +162,7 @@ public: shared_qobject_ptr<Meta::Index> metadataIndex(); - Capabilities currentCapabilities(); + void updateCapabilities(); /*! * Finds and returns the full path to a jar file. @@ -180,6 +180,10 @@ public: return m_rootPath; } + const Capabilities capabilities() { + return m_capabilities; + } + /*! * Opens a json file using either a system default editor, or, if not empty, the editor * specified in the settings @@ -258,6 +262,7 @@ private: QString m_rootPath; Status m_status = Application::StartingUp; + Capabilities m_capabilities; #ifdef Q_OS_MACOS Qt::ApplicationState m_prevAppState = Qt::ApplicationInactive; |