void CGuiCom::tabMainMenu(Tab tab, size_t id)
{
	#ifndef SR_EDITOR  ///_  game tab change
	if (tab == app->mWndTabsGame)
	{
		if (id == TAB_Car)
			app->gui->CarListUpd();  //  off filtering by chall
	
		app->mWndTrkFilt->setVisible(false);  //

		if (id == TAB_Multi)
		{	//  back to mplr tab, upload game info
									//_ only for host..
			if (app->mMasterClient && app->gui->valNetPassword->getVisible())
			{	app->gui->uploadGameInfo();
				app->gui->updateGameInfoGUI();
			}
			//- app->gui->evBtnNetRefresh(0);  // upd games list (don't, breaks game start)
		}
	}
	#endif

	if (id != 0)  return;  // <back
	tab->setIndexSelected(1);  // dont switch to 0
	pSet->isMain = true;
	app->gui->toggleGui(false);  // back to main
}
void CGuiCom::tabMainMenu(Tab tab, size_t id)
{
	#ifndef SR_EDITOR
	if (tab == app->mWndTabsGame && id == TAB_Car)
		app->gui->CarListUpd();  // off filtering
	#endif

	if (id != 0)  return;  // <back
	tab->setIndexSelected(1);  // dont switch to 0
	pSet->isMain = true;
	app->gui->toggleGui(false);  // back to main
}