Clean up some more reference passing related to server and clients and use the Resource Manager instead
This commit is contained in:
parent
128bfc7792
commit
55bf28d4c3
7 changed files with 34 additions and 40 deletions
10
main.cpp
10
main.cpp
|
|
@ -180,17 +180,7 @@ int main(int argc, char* argv[])
|
|||
dlg.AddI2CToolsPage();
|
||||
}
|
||||
|
||||
if(ResourceManager::get()->GetClients().size() == 0)
|
||||
{
|
||||
dlg.AddServerTab(ResourceManager::get()->GetServer());
|
||||
}
|
||||
|
||||
dlg.AddClientTab();
|
||||
|
||||
for(std::size_t client_idx = 0; client_idx < ResourceManager::get()->GetClients().size(); client_idx++)
|
||||
{
|
||||
dlg.AddClient(ResourceManager::get()->GetClients()[client_idx]);
|
||||
}
|
||||
|
||||
if(ret_flags & RET_FLAG_START_MINIMIZED)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue