summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.hpp
diff options
context:
space:
mode:
authorzakk4223 <zakk@rsdio.com>2024-03-20 21:55:13 -0400
committerGitHub <noreply@github.com>2024-03-21 01:55:13 +0000
commit4c796683c05a0eaccc14aae8875f06972f9f3c5e (patch)
treea2605abdd24aa8a1c444adceee70cbdb450d296b /src/config/ConfigManager.hpp
parent214ec82ba7dcbb33b45963d13b84f9bd6c913614 (diff)
config: Config error limit/hyprctl (#5165)
* Add error_limit to limit the number of config error messages shown in notification * Add configerrors hyprctl command * Formatting * Formatting for not my code * Use CVarList, add escapeJSONStrings * Add indication there are more undisplayed errors * Restore suppress_errors; move getErrors() to ConfigManager * Formatting, wtf * Format
Diffstat (limited to 'src/config/ConfigManager.hpp')
-rw-r--r--src/config/ConfigManager.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp
index a00aaec9..9fd1e097 100644
--- a/src/config/ConfigManager.hpp
+++ b/src/config/ConfigManager.hpp
@@ -142,6 +142,7 @@ class CConfigManager {
void addExecRule(const SExecRequestedRule&);
void handlePluginLoads();
+ std::string getErrors();
// keywords
std::optional<std::string> handleRawExec(const std::string&, const std::string&);
@@ -193,6 +194,7 @@ class CConfigManager {
std::deque<std::string> firstExecRequests;
std::vector<std::pair<std::string, std::string>> m_vFailedPluginConfigValues; // for plugin values of unloaded plugins
+ std::string m_szConfigErrors = "";
// internal methods
void setAnimForChildren(SAnimationPropertyConfig* const);