Seite 1 von 1

Transponderscan finished successfully

Verfasst: Sonntag 22. April 2012, 00:22
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

Re: Transponderscan finished successfully

Verfasst: Sonntag 22. April 2012, 07:26
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()

Re: Transponderscan finished successfully

Verfasst: Sonntag 22. April 2012, 17:39
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