mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
default context preset cannot be deleted
This commit is contained in:
@@ -399,6 +399,11 @@ jQuery(async () => {
|
||||
return;
|
||||
}
|
||||
|
||||
// default context preset cannot be deleted
|
||||
if (apiId == "context" && power_user.default_context === power_user.context.preset) {
|
||||
return;
|
||||
}
|
||||
|
||||
const confirm = await callPopup('Delete the preset? This action is irreversible and your current settings will be overwritten.', 'confirm');
|
||||
|
||||
if (!confirm) {
|
||||
|
Reference in New Issue
Block a user