Remove the concept of default context and instruct. Swap columns

This commit is contained in:
Cohee
2024-09-21 22:37:15 +03:00
parent e469c82c97
commit bf5b6090eb
6 changed files with 137 additions and 220 deletions

View File

@@ -615,11 +615,6 @@ export async function initPresetManager() {
return;
}
// default context preset cannot be deleted
if (apiId == 'context' && power_user.default_context === power_user.context.preset) {
return;
}
const headerText = !presetManager.isAdvancedFormatting() ? 'Delete this preset?' : 'Delete this template?';
const confirm = await Popup.show.confirm(headerText, 'This action is irreversible and your current settings will be overwritten.');
if (!confirm) {