default context preset cannot be deleted

This commit is contained in:
Stefan Daniel Schwarz
2023-08-26 14:52:23 +02:00
parent 7e506db105
commit 3509e6b1d4
3 changed files with 9 additions and 2 deletions

View File

@ -975,6 +975,8 @@ function loadContextSettings() {
function highlightDefaultContext() {
$('#context_set_default').toggleClass('default', power_user.default_context === power_user.context.preset);
$('#context_set_default').toggleClass('disabled', power_user.default_context === power_user.context.preset);
$('#context_delete_preset').toggleClass('disabled', power_user.default_context === power_user.context.preset);
}
export function fuzzySearchCharacters(searchValue) {