Renamed not-running-bide to hide-not-running
This commit is contained in:
parent
3411236697
commit
8d4c7176f8
|
@ -45,7 +45,7 @@ class Gamemode : public AModule {
|
||||||
std::string format_alt = DEFAULT_FORMAT_ALT;
|
std::string format_alt = DEFAULT_FORMAT_ALT;
|
||||||
std::string glyph = DEFAULT_GLYPH;
|
std::string glyph = DEFAULT_GLYPH;
|
||||||
bool tooltip = true;
|
bool tooltip = true;
|
||||||
bool notRunningHide = true;
|
bool hideNotRunning = true;
|
||||||
bool useIcon = true;
|
bool useIcon = true;
|
||||||
uint iconSize = 20;
|
uint iconSize = 20;
|
||||||
uint iconSpacing = 4;
|
uint iconSpacing = 4;
|
||||||
|
|
|
@ -35,8 +35,8 @@ Gamemode::Gamemode(const std::string& id, const Json::Value& config)
|
||||||
box_.set_has_tooltip(tooltip);
|
box_.set_has_tooltip(tooltip);
|
||||||
|
|
||||||
// Hide when game count is 0
|
// Hide when game count is 0
|
||||||
if (config_["not-running-hide"].isBool()) {
|
if (config_["hide-not-running"].isBool()) {
|
||||||
notRunningHide = config_["not-running-hide"].asBool();
|
hideNotRunning = config_["hide-not-running"].asBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Icon Name
|
// Icon Name
|
||||||
|
@ -186,7 +186,7 @@ bool Gamemode::handleToggle(GdkEventButton* const& event) {
|
||||||
|
|
||||||
auto Gamemode::update() -> void {
|
auto Gamemode::update() -> void {
|
||||||
// Don't update widget if the Gamemode service isn't running
|
// 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);
|
event_box_.set_visible(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue