feat+refactor: trash instance icons
also refactor IconList::deleteIcon Signed-off-by: leo78913 <leo3758@riseup.net>
This commit is contained in:
parent
8036272e87
commit
8c99edd3c5
3 changed files with 15 additions and 8 deletions
|
@ -112,6 +112,9 @@ void IconPickerDialog::addNewIcon()
|
|||
|
||||
void IconPickerDialog::removeSelectedIcon()
|
||||
{
|
||||
if (APPLICATION->icons()->trashIcon(selectedIconKey))
|
||||
return;
|
||||
|
||||
APPLICATION->icons()->deleteIcon(selectedIconKey);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue