mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
add provider name to infobar , no gui option
This commit is contained in:
@@ -378,6 +378,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
strcpy(g_settings.shutdown_min, configfile.getString("shutdown_min","180").c_str());
|
||||
|
||||
g_settings.infobar_sat_display = configfile.getBool("infobar_sat_display" , true );
|
||||
g_settings.infobar_show_channeldesc = configfile.getBool("infobar_show_channeldesc" , false );
|
||||
g_settings.infobar_subchan_disp_pos = configfile.getInt32("infobar_subchan_disp_pos" , 0 );
|
||||
g_settings.progressbar_color = configfile.getBool("progressbar_color", true );
|
||||
g_settings.infobar_show = configfile.getInt32("infobar_show", 1);
|
||||
@@ -833,6 +834,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setString("shutdown_count" , g_settings.shutdown_count);
|
||||
configfile.setString("shutdown_min" , g_settings.shutdown_min );
|
||||
configfile.setBool("infobar_sat_display" , g_settings.infobar_sat_display );
|
||||
configfile.setBool("infobar_show_channeldesc" , g_settings.infobar_show_channeldesc );
|
||||
configfile.setInt32("infobar_subchan_disp_pos" , g_settings.infobar_subchan_disp_pos );
|
||||
configfile.setBool("progressbar_color" , g_settings.progressbar_color );
|
||||
configfile.setInt32("infobar_show", g_settings.infobar_show);
|
||||
@@ -1953,7 +1955,18 @@ void CNeutrinoApp::numericZap(int msg)
|
||||
void CNeutrinoApp::showInfo()
|
||||
{
|
||||
StopSubtitles();
|
||||
g_InfoViewer->showTitle(channelList->getActiveChannelNumber(), channelList->getActiveChannelName(), channelList->getActiveSatellitePosition(), channelList->getActiveChannel_ChannelID());
|
||||
std::string name = channelList->getActiveChannelName();
|
||||
std::string pname = "";
|
||||
|
||||
if(g_settings.infobar_show_channeldesc){
|
||||
CZapitChannel* channel= channelList->getActiveChannel();
|
||||
if(channel->pname){
|
||||
pname = channel->pname;
|
||||
pname=pname.substr(pname.find_first_of("]")+1);
|
||||
}
|
||||
}
|
||||
|
||||
g_InfoViewer->showTitle(channelList->getActiveChannelNumber(), name, channelList->getActiveSatellitePosition(), channelList->getActiveChannel_ChannelID(), false, 0, pname);
|
||||
StartSubtitles();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user