Add message to restart server after config change

This commit is contained in:
Patrick Nicolas
2025-11-19 14:16:15 +01:00
parent 01c4f0343a
commit 7c2057ec9e
9 changed files with 115 additions and 68 deletions
+6 -1
View File
@@ -38,7 +38,8 @@ class wivrn_server;
class Settings : public QObject
{
Q_OBJECT
QML_ELEMENT
QML_NAMED_ELEMENT(Settings)
QML_SINGLETON
public:
enum encoder_name
{
@@ -95,6 +96,7 @@ public:
SETTER_GETTER_NOTIFY(QString, openvr)
private:
nlohmann::json m_jsonSettings = nlohmann::json::object();
nlohmann::json m_originalSettings;
void emitAllChanged();
public:
@@ -117,6 +119,9 @@ public:
static video_codec codec_id_from_string(std::string_view s);
static const std::string & encoder_from_id(encoder_name id);
static const std::string & codec_from_id(video_codec id);
Q_SIGNALS:
void settingsChanged();
};
#undef SETTER_GETTER_NOTIFY