Skip to content

Backup & restore: Import process is not accurately restoring the "Explorer Command Bar" mod settings #1172

Open

Description

@AromaKitsune

Windhawk version: 2.0 alpha 8
Affected mod: Explorer Command Bar by @DanRotaru
Mod version: 1.2.0

When importing Windhawk data using the app's built-in backup & restore feature, the custom configuration for the "Explorer Command Bar" mod is not accurately restored. The Explorer Command Bar settings window's export & import feature does not have this issue.

Expected behavior (menu items)

Here are my example configurations:

The layout should exactly match the backed-up state. It should only display Terminal, Everything, and the Additional menu with Notepad++. The removed default items should remain absent after importing backed up Windhawk data.

Image

Actual behavior (menu items)

The imported settings do not completely overwrite the default state. The import process incorrectly restores those default menu items - Paint, Calculator, Commands, and AI - back into the empty slots where they originally resided.

Image
Mod settings
# Explorer Command Bar settings (v1.2.0)
# Import them with the Import button of the mod's settings window.

items:
  - type: button
    name: Open in Terminal
    command: wt.exe
    parameters: '-d "%path%"'
    shortcut: ''
    iconGlyph: ''
    hideIcon: false
    showLabel: false
    labelText: ''
    separatorAfter: false
  - type: button
    name: Search Everything
    command: C:\Program Files\Everything\Everything.exe
    parameters: '"%path%"'
    shortcut: Ctrl+Shift+F
    iconGlyph: ''
    hideIcon: false
    showLabel: false
    labelText: ''
    separatorAfter: false
  - type: menu
    name: Additional
    command: ''
    parameters: ''
    shortcut: ''
    iconGlyph: E81E
    hideIcon: false
    showLabel: false
    labelText: ''
    separatorAfter: false
    subItems:
      - type: button
        name: Edit with Notepad++
        command: C:\Program Files\Notepad++\notepad++.exe
        parameters: '"%sel%"'
        shortcut: Ctrl+E
        iconGlyph: ''
        hideIcon: false
        separatorAfter: false

hideDefaultButtons:
  new: false
  cut: false
  copy: false
  paste: false
  rename: false
  share: false
  delete: false
  sort: false
  view: false
  moreOptions: false
  details: false
  setAsBackground: true
  rotateLeft: true
  rotateRight: true
  extractAll: false
  separatorAfterNew: false
  separatorAfterDelete: false
  separatorAfterView: false

newPlus:
  enabled: false
  showLabel: true
  buttonLabel: New
  buttonIcon: ''
  keepOriginalNewButton: false
  templateFolder: ''
  showIcons: true
  showTemplatesFolderItem: true

contextMenuItem:
  enabled: false
  useNilesoftShell: false
  showLabel: false
  buttonLabel: Context menu
  buttonIcon: E8FD
showSettingsItem: true
settingsItemOrder: -1
placeOnSecondaryBar: false
itemSpacing: -1
openMenuOnHover: false
menuHoverDelay: 400
Windhawk data backup
{
  "format": "windhawk-user-data-v1",
  "mods": [
    {
      "modId": "explorer-command-bar",
      "version": "1.2.0",
      "name": "Explorer Command Bar",
      "settings": {
        "showSettingsItem": 1,
        "settingsItemOrder": -1,
        "items[0].type": "button",
        "items[0].name": "Open in Terminal",
        "items[0].command": "wt.exe",
        "items[0].parameters": "-d \"%path%\"",
        "items[0].shortcut": "",
        "items[0].iconGlyph": "",
        "items[0].hideIcon": 0,
        "items[0].showLabel": 0,
        "items[0].labelText": "",
        "items[0].separatorAfter": 0,
        "items[1].type": "button",
        "items[1].name": "Search Everything",
        "items[1].command": "C:\\Program Files\\Everything\\Everything.exe",
        "items[1].parameters": "\"%path%\"",
        "items[1].shortcut": "Ctrl+Shift+F",
        "items[1].iconGlyph": "",
        "items[1].hideIcon": 0,
        "items[1].showLabel": 0,
        "items[1].labelText": "",
        "items[1].separatorAfter": 0,
        "items[2].type": "menu",
        "items[2].name": "Additional",
        "items[2].command": "",
        "items[2].parameters": "",
        "items[2].shortcut": "",
        "items[2].iconGlyph": "E81E",
        "items[2].hideIcon": 0,
        "items[2].showLabel": 0,
        "items[2].labelText": "",
        "items[2].separatorAfter": 0,
        "items[2].subItems[0].type": "button",
        "items[2].subItems[0].name": "Edit with Notepad++",
        "items[2].subItems[0].command": "C:\\Program Files\\Notepad++\\notepad++.exe",
        "items[2].subItems[0].parameters": "\"%sel%\"",
        "items[2].subItems[0].shortcut": "Ctrl+E",
        "items[2].subItems[0].iconGlyph": "",
        "items[2].subItems[0].hideIcon": 0,
        "items[2].subItems[0].separatorAfter": 0,
        "placeOnSecondaryBar": 0,
        "hideDefaultButtons.new": 0,
        "hideDefaultButtons.separatorAfterNew": 0,
        "hideDefaultButtons.cut": 0,
        "hideDefaultButtons.copy": 0,
        "hideDefaultButtons.paste": 0,
        "hideDefaultButtons.rename": 0,
        "hideDefaultButtons.share": 0,
        "hideDefaultButtons.delete": 0,
        "hideDefaultButtons.separatorAfterDelete": 0,
        "hideDefaultButtons.sort": 0,
        "hideDefaultButtons.view": 0,
        "hideDefaultButtons.separatorAfterView": 0,
        "hideDefaultButtons.moreOptions": 0,
        "hideDefaultButtons.setAsBackground": 1,
        "hideDefaultButtons.rotateLeft": 1,
        "hideDefaultButtons.rotateRight": 1,
        "hideDefaultButtons.extractAll": 0,
        "hideDefaultButtons.details": 0,
        "newPlus.enabled": 0,
        "newPlus.showLabel": 1,
        "newPlus.buttonLabel": "New",
        "newPlus.buttonIcon": "",
        "newPlus.templateFolder": "",
        "newPlus.showIcons": 1,
        "newPlus.showTemplatesFolderItem": 1,
        "newPlus.keepOriginalNewButton": 0,
        "contextMenuItem.enabled": 0,
        "contextMenuItem.useNilesoftShell": 0,
        "contextMenuItem.showLabel": 0,
        "contextMenuItem.buttonLabel": "Context menu",
        "contextMenuItem.buttonIcon": "E8FD",
        "openMenuOnHover": 0,
        "menuHoverDelay": 400,
        "itemSpacing": -1
      }
    }
  ]
}

Expected behavior (toolbar buttons)

A backup containing only the "Everything" and settings buttons should restore with only both buttons.

Image

Actual behavior (toolbar buttons)

The import process incorrectly restores the default Notepad button, the default Additional menu and its items.

Image
Mod settings
# Explorer Command Bar settings (v1.2.0)
# Import them with the Import button of the mod's settings window.

items:
  - type: button
    name: Search Everything
    command: C:\Program Files\Everything\Everything.exe
    parameters: '"%path%"'
    shortcut: Ctrl+Shift+F
    iconGlyph: ''
    hideIcon: false
    showLabel: false
    labelText: ''
    separatorAfter: false

hideDefaultButtons:
  new: false
  cut: false
  copy: false
  paste: false
  rename: false
  share: false
  delete: false
  sort: false
  view: false
  moreOptions: false
  details: false
  setAsBackground: true
  rotateLeft: true
  rotateRight: true
  extractAll: false
  separatorAfterNew: false
  separatorAfterDelete: false
  separatorAfterView: false

newPlus:
  enabled: false
  showLabel: true
  buttonLabel: New
  buttonIcon: ''
  keepOriginalNewButton: false
  templateFolder: ''
  showIcons: true
  showTemplatesFolderItem: true

contextMenuItem:
  enabled: false
  useNilesoftShell: false
  showLabel: false
  buttonLabel: Context menu
  buttonIcon: E8FD
showSettingsItem: true
settingsItemOrder: -1
placeOnSecondaryBar: false
itemSpacing: -1
openMenuOnHover: false
menuHoverDelay: 400
Windhawk data backup
{
  "format": "windhawk-user-data-v1",
  "mods": [
    {
      "modId": "explorer-command-bar",
      "version": "1.2.0",
      "name": "Explorer Command Bar",
      "settings": {
        "showSettingsItem": 1,
        "settingsItemOrder": -1,
        "items[0].type": "button",
        "items[0].name": "Search Everything",
        "items[0].command": "C:\\Program Files\\Everything\\Everything.exe",
        "items[0].parameters": "\"%path%\"",
        "items[0].shortcut": "Ctrl+Shift+F",
        "items[0].iconGlyph": "",
        "items[0].hideIcon": 0,
        "items[0].showLabel": 0,
        "items[0].labelText": "",
        "items[0].separatorAfter": 0,
        "placeOnSecondaryBar": 0,
        "hideDefaultButtons.new": 0,
        "hideDefaultButtons.separatorAfterNew": 0,
        "hideDefaultButtons.cut": 0,
        "hideDefaultButtons.copy": 0,
        "hideDefaultButtons.paste": 0,
        "hideDefaultButtons.rename": 0,
        "hideDefaultButtons.share": 0,
        "hideDefaultButtons.delete": 0,
        "hideDefaultButtons.separatorAfterDelete": 0,
        "hideDefaultButtons.sort": 0,
        "hideDefaultButtons.view": 0,
        "hideDefaultButtons.separatorAfterView": 0,
        "hideDefaultButtons.moreOptions": 0,
        "hideDefaultButtons.setAsBackground": 1,
        "hideDefaultButtons.rotateLeft": 1,
        "hideDefaultButtons.rotateRight": 1,
        "hideDefaultButtons.extractAll": 0,
        "hideDefaultButtons.details": 0,
        "newPlus.enabled": 0,
        "newPlus.showLabel": 1,
        "newPlus.buttonLabel": "New",
        "newPlus.buttonIcon": "",
        "newPlus.templateFolder": "",
        "newPlus.showIcons": 1,
        "newPlus.showTemplatesFolderItem": 1,
        "newPlus.keepOriginalNewButton": 0,
        "contextMenuItem.enabled": 0,
        "contextMenuItem.useNilesoftShell": 0,
        "contextMenuItem.showLabel": 0,
        "contextMenuItem.buttonLabel": "Context menu",
        "contextMenuItem.buttonIcon": "E8FD",
        "openMenuOnHover": 0,
        "menuHoverDelay": 400,
        "itemSpacing": -1
      }
    }
  ]
}

Here's what the default command bar layout looks like when the mod is installed, or when the mod's settings are reset.

Image

Activity

  1. added
    bug
    on Oct 30, 2026
  2. m417z commented on Oct 30, 2026

    @m417z
    Member

    Thanks, I'm glad that it was spotted while still in alpha! It will be fixed in the next update.

  3. added
    planned
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplanned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions