mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
feat: Clear servers before updating subscription
This commit is contained in:
@@ -357,6 +357,14 @@ namespace NekoRay::sub {
|
||||
group->info = sub_user_info;
|
||||
group->order.clear();
|
||||
group->Save();
|
||||
//
|
||||
if (dataStore->sub_clear) {
|
||||
showLog(QObject::tr("Clearing servers..."));
|
||||
for (const auto &profile: in) {
|
||||
profileManager->DeleteProfile(profile->id);
|
||||
}
|
||||
in = {};
|
||||
}
|
||||
}
|
||||
|
||||
// 解析并添加 profile
|
||||
|
||||
Reference in New Issue
Block a user