From 4d14bcb02f54b1ab35ccf909e461c8e7646a38e2 Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 20 Apr 2025 20:39:33 +0200 Subject: config: Refactor class member vars (#10124) * Refactor config classes vars * Fix clang format errors --- src/config/ConfigManager.hpp | 48 ++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/config/ConfigManager.hpp') diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index 50ab798c..574d861d 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -246,47 +246,47 @@ class CConfigManager { std::optional handlePlugin(const std::string&, const std::string&); std::optional handlePermission(const std::string&, const std::string&); - std::string configCurrentPath; + std::string m_configCurrentPath; - bool m_bWantsMonitorReload = false; - bool m_bNoMonitorReload = false; - bool isLaunchingExecOnce = false; // For exec-once to skip initial ws tracking - bool m_bLastConfigVerificationWasSuccessful = true; + bool m_wantsMonitorReload = false; + bool m_noMonitorReload = false; + bool m_isLaunchingExecOnce = false; // For exec-once to skip initial ws tracking + bool m_lastConfigVerificationWasSuccessful = true; void storeFloatingSize(PHLWINDOW window, const Vector2D& size); std::optional getStoredFloatingSize(PHLWINDOW window); private: - UP m_pConfig; + UP m_config; std::vector m_configPaths; - Hyprutils::Animation::CAnimationConfigTree m_AnimationTree; + Hyprutils::Animation::CAnimationConfigTree m_animationTree; - std::string m_szCurrentSubmap = ""; // For storing the current keybind submap + std::string m_currentSubmap = ""; // For storing the current keybind submap - std::vector execRequestedRules; // rules requested with exec, e.g. [workspace 2] kitty + std::vector m_execRequestedRules; // rules requested with exec, e.g. [workspace 2] kitty - std::vector m_vDeclaredPlugins; - std::vector pluginKeywords; - std::vector pluginVariables; + std::vector m_declaredPlugins; + std::vector m_pluginKeywords; + std::vector m_pluginVariables; - bool isFirstLaunch = true; // For exec-once + bool m_isFirstLaunch = true; // For exec-once - std::vector m_vMonitorRules; - std::vector m_vWorkspaceRules; - std::vector> m_vWindowRules; - std::vector> m_vLayerRules; - std::vector m_dBlurLSNamespaces; + std::vector m_monitorRules; + std::vector m_workspaceRules; + std::vector> m_windowRules; + std::vector> m_layerRules; + std::vector m_blurLSNamespaces; - bool firstExecDispatched = false; - bool m_bManualCrashInitiated = false; + bool m_firstExecDispatched = false; + bool m_manualCrashInitiated = false; - std::vector firstExecRequests; // bool is for if with rules - std::vector finalExecRequests; + std::vector m_firstExecRequests; // bool is for if with rules + std::vector m_finalExecRequests; - std::vector> m_vFailedPluginConfigValues; // for plugin values of unloaded plugins - std::string m_szConfigErrors = ""; + std::vector> m_failedPluginConfigValues; // for plugin values of unloaded plugins + std::string m_configErrors = ""; uint32_t m_configValueNumber = 0; -- cgit v1.2.3