Tracker: Force Identify - don't require holding shift (#4857)
Don't require to hold shift when clicking on force identify, can now be released after popup menu have appeared.
This commit is contained in:
@@ -2554,10 +2554,13 @@ BContainerWindow::SetupMoveCopyMenus(const entry_ref* item_ref, BMenu* parent)
|
||||
// Set the "Identify" item label
|
||||
BMenuItem* identifyItem = parent->FindItem(kIdentifyEntry);
|
||||
if (identifyItem != NULL) {
|
||||
if (modifierKeys & B_SHIFT_KEY)
|
||||
if (modifierKeys & B_SHIFT_KEY) {
|
||||
identifyItem->SetLabel(B_TRANSLATE("Force identify"));
|
||||
else
|
||||
identifyItem->Message()->ReplaceBool("force", true);
|
||||
} else {
|
||||
identifyItem->SetLabel(B_TRANSLATE("Identify"));
|
||||
identifyItem->Message()->ReplaceBool("force", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2778,8 +2781,9 @@ BContainerWindow::AddFileContextMenus(BMenu* menu)
|
||||
#endif
|
||||
|
||||
menu->AddSeparatorItem();
|
||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Identify"),
|
||||
new BMessage(kIdentifyEntry)));
|
||||
BMessage* message = new BMessage(kIdentifyEntry);
|
||||
message->AddBool("force", false);
|
||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Identify"), message));
|
||||
BMenu* addOnMenuItem = new BMenu(B_TRANSLATE("Add-ons"));
|
||||
addOnMenuItem->SetFont(be_plain_font);
|
||||
menu->AddItem(addOnMenuItem);
|
||||
|
||||
Reference in New Issue
Block a user