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