ide: Fixed packages issue in help window

git-svn-id: svn://ultimatepp.org/upp/trunk@15520 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-11-26 10:17:07 +00:00
parent d09717c2f0
commit 898732b6df
3 changed files with 5 additions and 3 deletions

View file

@ -177,7 +177,7 @@ void AssistEditor::NewTopic(String group, String coderef)
theide->EditFile(ef);
}
void AssistEditor::EditAnnotation(bool fastedit)
void AssistEditor::EditAnnotation(bool leftclick)
{
if(!SyncRefsFinished)
return;
@ -210,7 +210,7 @@ void AssistEditor::EditAnnotation(bool fastedit)
String scope2, item2;
SplitCodeRef(coderef2, scope2, item2);
m = GetCodeRefItem(coderef2);
if(scope2 == scope && m && m->access == access && tl.GetCount() == 1 && fastedit) {
if(scope2 == scope && m && m->access == access && tl.GetCount() == 1 && leftclick) {
OpenTopic(tl[0] + '#' + coderef2, coderef, false);
return;
}

View file

@ -560,6 +560,8 @@ void Ide::ShowTopicsWin()
if(windoc.IsOpen())
windoc.SetForeground();
else {
topic_serial++;
GetRefLinks("");
windoc.SyncDocTree();
windoc.GoTo(sTopicHome);
windoc.OpenMain();

View file

@ -795,7 +795,7 @@ void Ide::HelpMenu(Bar& menu)
{
if(!IsEditorMode()) {
menu.Add(AK_BROWSETOPICS, IdeImg::help(), THISBACK(ShowTopics));
menu.Add(AK_SEARCHTOPICS, THISBACK(SearchTopics));
menu.Add(editor.GetWord().GetCount(), AK_SEARCHTOPICS, THISBACK(SearchTopics));
}
menu.Add(AK_BROWSETOPICS_WIN, IdeImg::help_win(), THISBACK(ShowTopicsWin));
menu.MenuSeparator();