mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-26 03:11:21 +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];
|
auto profileToDel = chainList[idx];
|
||||||
if (profileToDel->isViewOnly()) {
|
|
||||||
MessageBoxInfo(tr("Profile is Read-only"), tr("Cannot delete built-in profiles"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
chainList.removeAt(idx);
|
chainList.removeAt(idx);
|
||||||
if (profileToDel == currentRoute) {
|
if (profileToDel == currentRoute) {
|
||||||
currentRoute = chainList[0];
|
currentRoute = chainList[0];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user