mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:45:58 +08:00
RepositoryUpdateUIManager: Fixed layout
This commit is contained in:
parent
d9eced61d7
commit
0f4a5250f8
@ -55,6 +55,13 @@ RepositoryUpdateUIManager::RepositoryUpdateUIManager(wxWindow* parent, PresetArc
|
|||||||
|
|
||||||
fill_entries(true);
|
fill_entries(true);
|
||||||
fill_grids();
|
fill_grids();
|
||||||
|
|
||||||
|
m_load_btn = new wxButton(m_parent, wxID_ANY, " " + _L("Load") + "... ");
|
||||||
|
wxGetApp().UpdateDarkUI(m_load_btn, true);
|
||||||
|
m_load_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent& event) { load_offline_repos(); });
|
||||||
|
m_main_sizer->Add(m_load_btn, 0, wxLEFT, 2 * em);
|
||||||
|
|
||||||
|
m_main_sizer->Fit(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RepositoryUpdateUIManager::fill_entries(bool init_selection/* = false*/)
|
void RepositoryUpdateUIManager::fill_entries(bool init_selection/* = false*/)
|
||||||
@ -193,14 +200,6 @@ void RepositoryUpdateUIManager::fill_grids()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
wxButton* btn = new wxButton(m_parent, wxID_ANY, " " + _L("Load") + "... ");
|
|
||||||
wxGetApp().UpdateDarkUI(btn, true);
|
|
||||||
btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent& event) { load_offline_repos(); });
|
|
||||||
m_offline_sizer->Add(btn);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RepositoryUpdateUIManager::update()
|
void RepositoryUpdateUIManager::update()
|
||||||
|
@ -51,6 +51,8 @@ class RepositoryUpdateUIManager
|
|||||||
wxFlexGridSizer* m_online_sizer { nullptr };
|
wxFlexGridSizer* m_online_sizer { nullptr };
|
||||||
wxFlexGridSizer* m_offline_sizer { nullptr };
|
wxFlexGridSizer* m_offline_sizer { nullptr };
|
||||||
|
|
||||||
|
wxButton* m_load_btn { nullptr };
|
||||||
|
|
||||||
std::vector<OnlineEntry> m_online_entries;
|
std::vector<OnlineEntry> m_online_entries;
|
||||||
std::vector<OfflineEntry> m_offline_entries;
|
std::vector<OfflineEntry> m_offline_entries;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user