MCPcopy Create free account
hub / github.com/LeFroid/Viper-Browser / toggleSubscriptionEnabled

Method toggleSubscriptionEnabled

src/core/adblock/AdBlockManager.cpp:393–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void AdBlockManager::toggleSubscriptionEnabled(int index)
394{
395 if (index < 0 || index >= static_cast<int>(m_subscriptions.size()))
396 return;
397
398 AdBlockSubscription &sub = m_subscriptions.at(index);
399 sub.setEnabled(!sub.isEnabled());
400
401 // Reset filter data
402 reloadSubscriptions();
403}
404
405void AdBlockManager::removeSubscription(int index)
406{

Callers 1

setDataMethod · 0.45

Calls 2

setEnabledMethod · 0.45
isEnabledMethod · 0.45

Tested by

no test coverage detected