mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
				synced 2023-10-05 13:01:48 +00:00 
			
		
		
		
	Optimizations in setup menu
This commit is contained in:
		
							
								
								
									
										20
									
								
								setup.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								setup.c
									
									
									
									
									
								
							| @@ -236,11 +236,16 @@ void cMenuSetupGeneral::Set(void) { | ||||
| } | ||||
|  | ||||
| eOSState cMenuSetupGeneral::ProcessKey(eKeys Key) { | ||||
|     bool olduseNopacityTheme = tmpTvguideConfig->useNopacityTheme; | ||||
|     bool olddisplayRerunsDetailEPGView = tmpTvguideConfig->displayRerunsDetailEPGView; | ||||
|     eOSState state = cOsdMenu::ProcessKey(Key); | ||||
|     if (Key == kOk) { | ||||
|         state = osBack; | ||||
|     } else if (Key != kNone) { | ||||
|         Set(); | ||||
|         if (tmpTvguideConfig->useNopacityTheme != olduseNopacityTheme || | ||||
| 	    tmpTvguideConfig->displayRerunsDetailEPGView != olddisplayRerunsDetailEPGView) { | ||||
|             Set(); | ||||
|         } | ||||
|     } | ||||
|     return state; | ||||
| } | ||||
| @@ -317,11 +322,22 @@ void cMenuSetupScreenLayout::Set(void) { | ||||
| } | ||||
|  | ||||
| eOSState cMenuSetupScreenLayout::ProcessKey(eKeys Key) { | ||||
|     int olddisplayMode = tmpTvguideConfig->displayMode; | ||||
|     bool olddisplayStatusHeader = tmpTvguideConfig->displayStatusHeader; | ||||
|     bool olddisplayChannelGroups = tmpTvguideConfig->displayChannelGroups; | ||||
|     int oldhideChannelLogos = tmpTvguideConfig->hideChannelLogos; | ||||
|     int oldhideEpgImages = tmpTvguideConfig->hideEpgImages; | ||||
|     eOSState state = cOsdMenu::ProcessKey(Key); | ||||
|     if (Key == kOk) { | ||||
|         state = osBack; | ||||
|     } else if (Key != kNone) { | ||||
|         Set(); | ||||
|         if (tmpTvguideConfig->displayMode != olddisplayMode || | ||||
|             tmpTvguideConfig->displayStatusHeader != olddisplayStatusHeader || | ||||
|             tmpTvguideConfig->displayChannelGroups != olddisplayChannelGroups || | ||||
|             tmpTvguideConfig->hideChannelLogos != oldhideChannelLogos || | ||||
|             tmpTvguideConfig->hideEpgImages != oldhideEpgImages) { | ||||
|             Set(); | ||||
|         } | ||||
|     } | ||||
|     return state; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user