Renamed not-running-bide to hide-not-running

This commit is contained in:
Erik Reider 2022-05-21 12:02:35 +02:00
parent 3411236697
commit 8d4c7176f8
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}