Menu

#2608 Change the menu to say "Edit Entries" when multiple records are selected

KeePass_2.x
closed
nobody
None
5
2022-03-27
2021-01-10
R A
No

… to remind the user before clicking that changes will be reflected in all the selected records.

Discussion

  • Dominik Reichl

    Dominik Reichl - 2022-03-25
    • status: open --> closed
    • Group: KeePass --> KeePass_2.x
     
  • Dominik Reichl

    Dominik Reichl - 2022-03-25

    I've added this now.

    Here's the latest development snapshot for testing:
    https://keepass.info/filepool/KeePass_220325.zip

    Thanks and best regards,
    Dominik

     
  • T. Bug Reporter

    T. Bug Reporter - 2022-03-26

    This snapshot broke my enforced config. Apparently, there's no longer any way to say "Don't ever save this parameter in the regular config, and remove it if you find that it's been saved."

    Here are the pieces of the file that it's choking on:

        <MainWindow>
            <X />
            <Y />
            <Width />
            <Height />
        </MainWindow>
        <UI>
            <DataViewerRect />
            <DataEditorRect />
        </UI>
    
     
  • Dominik Reichl

    Dominik Reichl - 2022-03-26

    The rectangles in the UI node are saved as strings. Your enforced configuration sets each of them to an empty string, which resets the rectangle; that's ok.

    The nodes X, Y, Width and Height in MainWindow store integer values though. An empty string is not a valid integer value. Therefore, an error message is displayed (and this also happens with previous KeePass versions like 2.50). If you want to reset these values, you can use a MergeNodeMode="Remove" attribute; see
    https://keepass.info/help/kb/config_enf.html#nm

    Example:

    <?xml version="1.0" encoding="utf-8"?>
    <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <MainWindow>
            <X MergeNodeMode="Remove" />
            <Y MergeNodeMode="Remove" />
            <Width MergeNodeMode="Remove" />
            <Height MergeNodeMode="Remove" />
        </MainWindow>
        <UI>
            <DataViewerRect />
            <DataEditorRect />
        </UI>
    </Configuration>
    

    Best regards,
    Dominik

     
  • T. Bug Reporter

    T. Bug Reporter - 2022-03-27

    I never really understood all the merge options; I guess I have some studying to do. For example, I've been thinking of trying to restrict some plugins similarly:

        <Custom>
            <Item>
                <Key>UsefulPlugin.AnnoyingSetting</Key>
                <Value />
            </Item>
            <!-- AND/OR -->
            <Item>
                <Key>HandyPlugin.PointlessSetting</Key>
                <Value MergeNodeMode="Remove" />
            </Item>
        </Custom>
    

    But, because of the generic manner in which plugin settings are stored, I'm afraid to try this for fear that every plugin's <Value>s would be removed.

     
  • Dominik Reichl

    Dominik Reichl - 2022-03-27

    Enforcing specific items in Custom (plugin settings) is possible. These items are identified by their Key value. See the section 'Lists':
    https://keepass.info/help/kb/config_enf.html#lists

    Best regards,
    Dominik

     

Log in to post a comment.

MongoDB Logo MongoDB