mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[Fix] Showing custom rules properly under custom rules now.
- if you created new custom rule, it showed under custom rules only until restart, then it was moved into EasyList
This commit is contained in:
parent
93e7c073d4
commit
47b6af18b5
|
@ -138,7 +138,7 @@ void AdBlockSubscription::rulesDownloaded()
|
|||
foreach(const AdBlockRule & rule, allRules()) {
|
||||
if (rule.filter().contains("*******- user custom filters")) {
|
||||
customRules = true;
|
||||
response.append("! *******- user custom filters -*************\n");
|
||||
response.append("\n! *******- user custom filters -*************\n");
|
||||
continue;
|
||||
}
|
||||
if (!customRules) {
|
||||
|
@ -147,6 +147,10 @@ void AdBlockSubscription::rulesDownloaded()
|
|||
response.append(rule.filter() + "\n");
|
||||
}
|
||||
|
||||
if (!customRules) {
|
||||
response.append("\n! *******- user custom filters -*************\n");
|
||||
}
|
||||
|
||||
file.write(response);
|
||||
file.close();
|
||||
loadRules();
|
||||
|
|
Loading…
Reference in New Issue
Block a user