mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
allow deleteing built-in profiles
This commit is contained in:
parent
abd9ce37ef
commit
7235743198
@ -302,10 +302,6 @@ void DialogManageRoutes::on_delete_route_clicked() {
|
||||
}
|
||||
|
||||
auto profileToDel = chainList[idx];
|
||||
if (profileToDel->isViewOnly()) {
|
||||
MessageBoxInfo(tr("Profile is Read-only"), tr("Cannot delete built-in profiles"));
|
||||
return;
|
||||
}
|
||||
chainList.removeAt(idx);
|
||||
if (profileToDel == currentRoute) {
|
||||
currentRoute = chainList[0];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user