Skip to content

Commit

Permalink
Fixup 0fecb69 (custom labels were overwritten)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 14, 2017
1 parent ef406b6 commit 99142b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/hotkey/command_executor.cpp
Expand Up @@ -478,11 +478,11 @@ void command_executor::get_menu_images(display& disp, std::vector<config>& items

item["label"] = desc;
item["details"] = hotkey::get_names(item_id);
} else {
// If no matching hotkey was found, treat the id as a plaintext description.
// This is because either type of value can be written to the id field by
// the WMI manager. The plaintext description is used in the case the menu item
// specifies the relevant entry is *not* a hotkey.
} else if(item["label"].empty()) {
// If no matching hotkey was found and a custom label wasn't already set, treat
// the id as a plaintext description. This is because either type of value can
// be written to the id field by the WMI manager. The plaintext description is
// used in the case the menu item specifies the relevant entry is *not* a hotkey.
item["label"] = item_id;
}
}
Expand Down

0 comments on commit 99142b0

Please sign in to comment.