From f873cd5b1aa17fe8119f27cc5d9b9eba10bd42bf Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Mon, 8 Aug 2022 20:49:49 +0200 Subject: refactor: store current capabilities Signed-off-by: Sefa Eyeoglu --- launcher/Application.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'launcher/Application.h') 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 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; -- cgit