feat+refactor: trash instance icons

also refactor IconList::deleteIcon

Signed-off-by: leo78913 <leo3758@riseup.net>
This commit is contained in:
leo78913
2022-12-06 20:25:42 -03:00
parent 8036272e87
commit 8c99edd3c5
3 changed files with 15 additions and 8 deletions

View File

@ -112,6 +112,9 @@ void IconPickerDialog::addNewIcon()
void IconPickerDialog::removeSelectedIcon()
{
if (APPLICATION->icons()->trashIcon(selectedIconKey))
return;
APPLICATION->icons()->deleteIcon(selectedIconKey);
}