Skip to content

Commit

Permalink
Fixed: workspace "link editor" button is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Jul 26, 2018
1 parent 50ee0b5 commit b6266d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions LiteEditor.workspace
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
<Project Name="SampleWorksapce" ConfigName="Debug"/>
<Project Name="SmartCompletion" ConfigName="Win_x64_Debug"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="CMake_Debug" Selected="no">
<WorkspaceConfiguration Name="CMake_Debug" Selected="yes">
<Environment/>
<Project Name="AutoSave" ConfigName="Win_x64_Debug"/>
<Project Name="CCTest" ConfigName="CMake_Debug"/>
Expand Down Expand Up @@ -372,7 +372,7 @@
<Project Name="SampleWorksapce" ConfigName="Debug"/>
<Project Name="SmartCompletion" ConfigName="Win_x64_Debug"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="Win_x64_Release" Selected="yes">
<WorkspaceConfiguration Name="Win_x64_Release" Selected="no">
<Environment/>
<Project Name="AutoSave" ConfigName="Win_x64_Release"/>
<Project Name="CCTest" ConfigName="Debug"/>
Expand Down
4 changes: 2 additions & 2 deletions LiteEditor/workspacetab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void WorkspaceTab::CreateGUIControls()
"of the seleced item in the tree"),
bmps->LoadBitmap("cog"));
m_toolbar580->AddSeparator();
m_toolbar580->AddTool(XRCID("ID_TOOL_LINK_EDITOR"), _("Link Editor"), bmps->LoadBitmap("link_editor"));
m_toolbar580->AddTool(XRCID("ID_TOOL_LINK_EDITOR"), _("Link Editor"), bmps->LoadBitmap("link_editor"), "", wxITEM_CHECK);
m_toolbar580->Realize();
}

Expand Down Expand Up @@ -186,7 +186,7 @@ void WorkspaceTab::ConnectEvents()

void WorkspaceTab::OnLinkEditor(wxCommandEvent& e)
{
m_isLinkedToEditor = !m_isLinkedToEditor;
m_isLinkedToEditor = e.IsChecked();
EditorConfigST::Get()->SetInteger(wxT("LinkWorkspaceViewToEditor"), m_isLinkedToEditor ? 1 : 0);
if(m_isLinkedToEditor) { OnActiveEditorChanged(e); }
}
Expand Down

0 comments on commit b6266d0

Please sign in to comment.