From 8d4c7176f8c212d534c8b586f075c73a55ee8dcd Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sat, 21 May 2022 12:02:35 +0200 Subject: [PATCH] Renamed not-running-bide to hide-not-running --- include/modules/gamemode.hpp | 2 +- src/modules/gamemode.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/modules/gamemode.hpp b/include/modules/gamemode.hpp index 16995f1f..b7caf63d 100644 --- a/include/modules/gamemode.hpp +++ b/include/modules/gamemode.hpp @@ -45,7 +45,7 @@ class Gamemode : public AModule { std::string format_alt = DEFAULT_FORMAT_ALT; std::string glyph = DEFAULT_GLYPH; bool tooltip = true; - bool notRunningHide = true; + bool hideNotRunning = true; bool useIcon = true; uint iconSize = 20; uint iconSpacing = 4; diff --git a/src/modules/gamemode.cpp b/src/modules/gamemode.cpp index dc3764ba..12d54ab5 100644 --- a/src/modules/gamemode.cpp +++ b/src/modules/gamemode.cpp @@ -35,8 +35,8 @@ Gamemode::Gamemode(const std::string& id, const Json::Value& config) box_.set_has_tooltip(tooltip); // Hide when game count is 0 - if (config_["not-running-hide"].isBool()) { - notRunningHide = config_["not-running-hide"].asBool(); + if (config_["hide-not-running"].isBool()) { + hideNotRunning = config_["hide-not-running"].asBool(); } // Icon Name @@ -186,7 +186,7 @@ bool Gamemode::handleToggle(GdkEventButton* const& event) { auto Gamemode::update() -> void { // Don't update widget if the Gamemode service isn't running - if (!gamemodeRunning || (gameCount <= 0 && notRunningHide)) { + if (!gamemodeRunning || (gameCount <= 0 && hideNotRunning)) { event_box_.set_visible(false); return; }