fix: define declared method + insert new bar entries to config file list + rename Hyprsunset -> Nightlight
This commit is contained in:
@@ -7,29 +7,32 @@
|
||||
namespace ZShell::settings {
|
||||
|
||||
class RootNode : public ObjectNode {
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QList<ZShell::settings::Diagnostic> diagnostics READ diagnostics NOTIFY diagnosticsChanged)
|
||||
Q_PROPERTY(
|
||||
QList<ZShell::settings::Diagnostic> diagnostics READ diagnostics NOTIFY
|
||||
diagnosticsChanged)
|
||||
|
||||
public:
|
||||
explicit RootNode(const QString& path, RootNode* fallback, QObject* parent = nullptr);
|
||||
public:
|
||||
explicit RootNode(
|
||||
const QString& path, RootNode* fallback, QObject* parent = nullptr);
|
||||
|
||||
[[nodiscard]] QList<Diagnostic> diagnostics() const;
|
||||
[[nodiscard]] QList<Diagnostic> diagnostics() const;
|
||||
|
||||
void load();
|
||||
void load();
|
||||
|
||||
signals:
|
||||
void diagnosticsChanged();
|
||||
void treeLoaded(RootNode* self);
|
||||
void treeLoadFailed(RootNode* self, const QString& error);
|
||||
void treeSaveFailed(RootNode* self, const QString& error);
|
||||
signals:
|
||||
void diagnosticsChanged();
|
||||
void treeLoaded(RootNode* self);
|
||||
void treeLoadFailed(RootNode* self, const QString& error);
|
||||
void treeSaveFailed(RootNode* self, const QString& error);
|
||||
|
||||
private:
|
||||
SettingsFile* const m_file;
|
||||
QList<Diagnostic> m_diagnostics;
|
||||
private:
|
||||
SettingsFile* const m_file;
|
||||
QList<Diagnostic> m_diagnostics;
|
||||
|
||||
void reloadFromFile();
|
||||
void saveToFile();
|
||||
void reloadFromFile();
|
||||
void saveToFile();
|
||||
};
|
||||
|
||||
} // namespace ZShell::settings
|
||||
|
||||
Reference in New Issue
Block a user