Transponderscan finished successfully

Das Original Benutzerinterface Neutrino-SD incl. zapit, sectionsd, yWeb etc...
Antworten
Renwich
Interessierter
Interessierter
Beiträge: 62
Registriert: Freitag 26. Mai 2006, 00:34

Transponderscan finished successfully

Beitrag von Renwich »

I'm looking to change the default timeout for the "Transponderscan finished successfully" as it takes 4minutes to timeout, can anyone let me know where I can change it, I've looked in scan.cpp and settings.cpp but can't find it
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: Transponderscan finished successfully

Beitrag von rhabarber1848 »

In apps/tuxbox/neutrino/src/gui/scan.cpp add some parameters in line 209, like this:

old:

Code: Alles auswählen

ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, success ? LOCALE_SCANTS_FINISHED : LOCALE_SCANTS_FAILED, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
new:

Code: Alles auswählen

ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, success ? LOCALE_SCANTS_FINISHED : LOCALE_SCANTS_FAILED, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO, 450, 10);
where 10 is the timeout value, code is untested.
Have a look at apps/tuxbox/neutrino/src/gui/widget/messagebox.cpp
for details of the implementation of ShowLocalizedMessage()
Renwich
Interessierter
Interessierter
Beiträge: 62
Registriert: Freitag 26. Mai 2006, 00:34

Re: Transponderscan finished successfully

Beitrag von Renwich »

Thanks for that spot on, I've also taken on board the "apps/tuxbox/neutrino/src/gui/widget/messagebox.cpp
for details of the implementation of ShowLocalizedMessage()" suggestion again thankyou
Antworten