Skip to content

Commit

Permalink
make it disableable
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jan 7, 2025
1 parent 0fd023d commit 211fa34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ CConfigManager::CConfigManager() {
m_pConfig->addConfigValue("render:ctm_animation", Hyprlang::INT{2});

m_pConfig->addConfigValue("ecosystem:no_update_news", Hyprlang::INT{0});
m_pConfig->addConfigValue("ecosystem:no_donation_nag", Hyprlang::INT{0});

// devices
m_pConfig->addSpecialCategory("device", {"name"});
Expand Down
5 changes: 4 additions & 1 deletion src/managers/DonationNagManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "../debug/Log.hpp"
#include "VersionKeeperManager.hpp"
#include "eventLoop/EventLoopManager.hpp"
#include "../config/ConfigValue.hpp"

#include <chrono>
#include <format>
Expand Down Expand Up @@ -33,7 +34,9 @@ const std::vector<SNagDatePoint> NAG_DATE_POINTS = {
// clang-format on

CDonationNagManager::CDonationNagManager() {
if (g_pVersionKeeperMgr->fired())
static auto PNONAG = CConfigValue<Hyprlang::INT>("ecosystem:no_donation_nag");

if (g_pVersionKeeperMgr->fired() || *PNONAG)
return;

const auto DATAROOT = NFsUtils::getDataHome();
Expand Down

0 comments on commit 211fa34

Please sign in to comment.