Kodi Community Forum
v18 Remove 2nd delete confirmation? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: Grid (https://forum.kodi.tv/forumdisplay.php?fid=280)
+----- Thread: v18 Remove 2nd delete confirmation? (/showthread.php?tid=340058)



Remove 2nd delete confirmation? - samedavis - 2019-01-31

After enabling "Allow file renaming and deletion", you get 2 confirmation when deleting (file & library)

I'm trying to combine into just one.  Also I noticed in the Grid skin the confirmations default to 'Yes'-

If someone can point me to the right files to tweak for either of these, I'd greatly appreciate it!


RE: Remove 2nd delete confirmation? - PatK - 2019-02-01

It's a bit of a safety net.

The first requester is remove the file from Kodi's "internal library" but keep the real file.
The second requester is to remove "the real file." and it's gone.

This would be best handled in the 'Grid' forum.

[Moving]


RE: Remove 2nd delete confirmation? - samedavis - 2019-02-01

(2019-02-01, 05:34)PatK Wrote: The first requester is remove the file from Kodi's "internal library" but keep the real file.
The second requester is to remove "the real file." and it's gone.
 Thanks PatK - I understand what the two are, I just find a separate confirmation for each excessive.  Any idea what file handles these?


RE: Remove 2nd delete confirmation? - Hitcher - 2019-02-01

They'll be in core code not skin apart from what is focused first (yes/no) and that'll be DialogConfirm.xml.


RE: Remove 2nd delete confirmation? - samedavis - 2019-02-01

Thanks Hitcher!

In case someone else wants to alter the focus in a different skin, here's the relevant code:
Quote:<control type="grouplist" id="9000">
    <centerleft>50%</centerleft>
    <top>360</top>
    <width>1664</width>
    <height>90</height>
    <onup>50</onup>
    <onleft>noop</onleft>
    <onright>71</onright>
    <align>center</align>
    <itemgap>0</itemgap>
    <orientation>horizontal</orientation>
    <!-- Ok -->
    <control type="button" id="11">
        <label>$LOCALIZE[107]</label>
        <width>256</width>
        <font>Black-24</font>
        <include>button_Dialog</include>
    </control>
    <!-- Cancel -->
    <control type="button" id="10">
        <label>$LOCALIZE[106]</label>
        <width>256</width>
        <font>Black-24</font>
        <include>button_Dialog</include>
    </control>
</control>