Bug 376675 - No way in the UI to delete a template without also adding a new one
Summary: No way in the UI to delete a template without also adding a new one
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 3.1.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Tiar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-19 15:29 UTC by animtim
Modified: 2019-09-23 11:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description animtim 2017-02-19 15:29:59 UTC
Currently, there's no way in the interface to delete a template without also adding or overwriting one.

The menu File->Create Template from image has the option to remove templates.
However, if you remove a template, it's only actually removed if you press OK to close that window, which triggers the creation of a new template or overwrite one.

If I click Cancel, it cancels removing the template.

Possible solution: add a separate dedicated button to add the template instead of when clicking ok, and then clicking ok saves all what is added and/or removed.
Comment 1 mvowada 2018-10-18 09:47:47 UTC
Hi,

This is still present in latest krita-4.2.0-pre-alpha-a2ae7f3-x86_64.appimage:

    1. create a template
    2. close
    3. new from template (the window appears)
    4. select the template to be removed
    5. click the "Remove" button

Actual Results: in order to make the deletion permanent you will be forced to create a new file.

Expected: just delete the template with the "Remove" button.
Comment 2 Tiar 2019-09-16 16:47:55 UTC
Git commit 7f3ce472e9b118911fe30cfc3c1e8943b505dfd0 by Agata Cacko.
Committed on 16/09/2019 at 16:47.
Pushed by tymond into branch 'master'.

Fix removing templates in Create template dialog

Before this commit, removing templates in Create template
dialog was possible only when clicking OK - which meant that
you had to create one template to remove another.
Now they are removed completely as soon as the user
confirms their will to remove them.

M  +1    -1    libs/ui/KisTemplateCreateDia.cpp

https://invent.kde.org/kde/krita/commit/7f3ce472e9b118911fe30cfc3c1e8943b505dfd0
Comment 3 Tiar 2019-09-23 11:20:01 UTC
Git commit f90efafce4592e23d470d20514c418e31dd9e385 by Agata Cacko.
Committed on 23/09/2019 at 11:19.
Pushed by tymond into branch 'krita/4.2'.

Fix removing templates in Create template dialog

Before this commit, removing templates in Create template
dialog was possible only when clicking OK - which meant that
you had to create one template to remove another.
Now they are removed completely as soon as the user
confirms their will to remove them.

M  +1    -1    libs/ui/KisTemplateCreateDia.cpp

https://invent.kde.org/kde/krita/commit/f90efafce4592e23d470d20514c418e31dd9e385