forked from len0rd/rockbox
rbutil: attempt autodetection at startup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13702 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e596a80e8d
commit
9d0e4e102b
3 changed files with 7 additions and 6 deletions
|
@ -79,15 +79,14 @@ bool rbutilFrmApp::OnInit()
|
|||
ReadUserConfig();
|
||||
|
||||
wxInitAllImageHandlers(); //init Image handlers
|
||||
initIpodpatcher(); // reserve mem for ipodpatcher
|
||||
initSansaPatcher(); // reserve mem for sansapatcher
|
||||
|
||||
rbutilFrm *myFrame = new rbutilFrm(NULL);
|
||||
SetTopWindow(myFrame);
|
||||
|
||||
myFrame->Show(TRUE);
|
||||
|
||||
initIpodpatcher(); // reserve mem for ipodpatcher
|
||||
initSansaPatcher(); // reserve mem for sansapatcher
|
||||
|
||||
wxLogVerbose(wxT("=== end rbUtilFrmApp::OnInit()"));
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -463,7 +463,7 @@ void DeviceSelectorCtrl::AutoDetect()
|
|||
}
|
||||
else
|
||||
{
|
||||
WARN_DIALOG(wxT("No Device detected. (This function only works if you have already installed rockbox or if you use a ipod or a sansa)."),
|
||||
WARN_DIALOG(wxT("No Device detected. If you have a Device connected, select the correct one manually."),
|
||||
wxT("Detecting a Device"));
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -96,8 +96,10 @@ void rbutilFrm::CreateGUIControls(void)
|
|||
|
||||
myDeviceSelector = new DeviceSelectorCtrl(mainPanel,wxID_ANY);
|
||||
myDeviceSelector->setDefault();
|
||||
myDeviceSelector->AutoDetect();
|
||||
WxBoxSizer0->Add(myDeviceSelector,0,wxGROW|wxALL,5);
|
||||
|
||||
|
||||
wxNotebook* tabwindow = new wxNotebook(mainPanel,wxID_ANY);
|
||||
WxBoxSizer0->Add(tabwindow,1,wxGROW|wxALL,5);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue