mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-30 09:04:52 +01:00
Add named variable for filtering results MSG_ACCEPT and MSG_IGNORE.
This commit is contained in:
parent
372c7f0ed4
commit
c2d312670d
@ -131,6 +131,8 @@ void FeedDownloader::updateOneFeed(Feed* feed) {
|
||||
|
||||
filter_engine.installExtensions(QJSEngine::Extension::ConsoleExtension);
|
||||
filter_engine.globalObject().setProperty("msg", js_object);
|
||||
filter_engine.globalObject().setProperty("MSG_ACCEPT", int(FilteringAction::Accept));
|
||||
filter_engine.globalObject().setProperty("MSG_IGNORE", int(FilteringAction::Ignore));
|
||||
|
||||
qDebugNN << LOGSEC_FEEDDOWNLOADER << "Setting up JS evaluation took " << tmr.nsecsElapsed() / 1000 << " microseconds.";
|
||||
|
||||
|
@ -157,6 +157,8 @@ void FormMessageFiltersManager::testFilter() {
|
||||
|
||||
filter_engine.installExtensions(QJSEngine::Extension::ConsoleExtension);
|
||||
filter_engine.globalObject().setProperty("msg", js_object);
|
||||
filter_engine.globalObject().setProperty("MSG_ACCEPT", int(FilteringAction::Accept));
|
||||
filter_engine.globalObject().setProperty("MSG_IGNORE", int(FilteringAction::Ignore));
|
||||
|
||||
Message msg = testingMessage();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user