Skip to content

Use visibility, reboot disabled #151

@Vzz1c

Description

@Vzz1c
<?xml version="1.0" encoding="utf-8"?>
<root>
  <shell>
	<menu name="Select the left file for comparison">
	      <visibility isempty="${select.left.path}" />
	      <actions>
                    <property name="select.left.path"     value="${selection.path}" />
                    <property name="select.left.path.filename" value="${selection.filename}" />
             </actions>
	</menu>
    <menu separator="true" />
    <menu name="Compare">
      <visibility properties="select.left.path" />
      <menu name="Compare with '${select.left.path}' (text)">
        <icon path="C:\Windows\System32\imageres.dll" index="14" />
        <visibility properties="select.left.path" />
        <actions>
			<exec path="${env.ComSpec}" arguments="/K FC /L &quot;${select.left.path}&quot; &quot;${selection.path}&quot;"  basedir="${selection.parent.path}" />
			<property name="compare.first.selection.path"     value="" />
			<property name="compare.first.selection.filename" value="" />
			<property name="select.left.path"     value="" />
			<property name="select.left.path.filename" value="" />
        </actions>
      </menu>
	     <menu name="Select file '${selection.filename}'">
        <actions>
          <property name="select.left.path"     value="${selection.path}" />
          <property name="select.left.path.filename" value="${selection.filename}" />
        </actions>
      </menu>
    </menu>
    <menu separator="true" />
  </shell>
</root>

After rebooting, I have to comment out the following, then manipulate the context menu, and then turn the comment off to get it to work.

<visibility isempty="${select.left.path}" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstagnationLack of progress

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions