Skip to content

Commit

Permalink
Traktor: Save height of south docking pane in user configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Jul 3, 2024
1 parent 12f5090 commit 5932da9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/Editor/App/EditorForm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,11 @@ bool EditorForm::create(const CommandLine& cmdLine)

const int32_t ww = m_mergedSettings->getProperty< int32_t >(L"Editor.PaneWestWidth", 350);
const int32_t we = m_mergedSettings->getProperty< int32_t >(L"Editor.PaneEastWidth", 350);
const int32_t hs = m_mergedSettings->getProperty< int32_t >(L"Editor.PaneSouthHeight", 250);

pane->split(false, ui::Unit(ww), m_paneWest, paneCenter);
paneCenter->split(false, -ui::Unit(we), paneCenter, m_paneEast);
paneCenter->split(true, -350_ut, paneCenter, m_paneSouth);
paneCenter->split(true, -ui::Unit(hs), paneCenter, m_paneSouth);
paneCenter->setDetachable(false);

// Set pane styles.
Expand Down Expand Up @@ -2929,6 +2930,7 @@ void EditorForm::eventClose(ui::CloseEvent* event)
// Save docking pane sizes.
m_globalSettings->setProperty< PropertyInteger >(L"Editor.PaneWestWidth", unit(m_paneWest->getPaneRect().getWidth()).get());
m_globalSettings->setProperty< PropertyInteger >(L"Editor.PaneEastWidth", unit(m_paneEast->getPaneRect().getWidth()).get());
m_globalSettings->setProperty< PropertyInteger >(L"Editor.PaneSouthHeight", unit(m_paneSouth->getPaneRect().getHeight()).get());

// Save panes visible.
m_globalSettings->setProperty< PropertyBoolean >(L"Editor.DatabaseVisible", m_dock->isWidgetVisible(m_dataBaseView));
Expand Down

0 comments on commit 5932da9

Please sign in to comment.