@@ -21,6 +21,7 @@ cMpvPluginSetup::cMpvPluginSetup()
2121 SetupShowMediaTitle = MpvPluginConfig -> ShowMediaTitle ;
2222 SetupShowSubtitles = MpvPluginConfig -> ShowSubtitles ;
2323 SetupExitAtEnd = MpvPluginConfig -> ExitAtEnd ;
24+ SetupShowAfterStop = MpvPluginConfig -> ShowAfterStop ;
2425 SetupSavePos = MpvPluginConfig -> SavePos ;
2526 SetupSoftVol = MpvPluginConfig -> SoftVol ;
2627 Setup ();
@@ -31,17 +32,23 @@ eOSState cMpvPluginSetup::ProcessKey(eKeys key)
3132 int oldUsePassthrough = SetupUsePassthrough ;
3233 int oldSoftVol = SetupSoftVol ;
3334 int oldPlaylistOnNextKey = SetupPlaylistOnNextKey ;
35+ int oldSetupExitAtEnd = SetupExitAtEnd ;
3436 eOSState state = cMenuSetupPage ::ProcessKey (key );
3537
3638 if (key != kNone && (SetupUsePassthrough != oldUsePassthrough || SetupPlaylistOnNextKey != oldPlaylistOnNextKey ||
37- SetupSoftVol != oldSoftVol ))
39+ SetupSoftVol != oldSoftVol || SetupExitAtEnd != oldSetupExitAtEnd ))
3840 Setup ();
3941
4042 return state ;
4143}
4244
4345void cMpvPluginSetup ::Setup ()
4446{
47+ static const char * const show_after_stop [] = {
48+ tr ("Black screen" ), tr ("Filebrowser" ),
49+ };
50+
51+
4552 int current = Current ();
4653 Clear ();
4754
@@ -59,6 +66,8 @@ void cMpvPluginSetup::Setup()
5966 Add (new cMenuEditBoolItem (tr ("Show media title instead of filename" ), & SetupShowMediaTitle ));
6067 Add (new cMenuEditBoolItem (tr ("Show subtitles "), & SetupShowSubtitles ));
6168 Add (new cMenuEditBoolItem (tr ("Exit at the end "), & SetupExitAtEnd ));
69+ if (!SetupExitAtEnd )
70+ Add (new cMenuEditStraItem (tr ("Show after stop" ), & SetupShowAfterStop , 2 , show_after_stop ));
6271 Add (new cMenuEditBoolItem (tr ("Save position on quit" ), & SetupSavePos ));
6372 SetCurrent (Get (current ));
6473 Display ();
@@ -76,6 +85,7 @@ void cMpvPluginSetup::Store()
7685 SetupStore ("ShowMediaTitle" , MpvPluginConfig -> ShowMediaTitle = SetupShowMediaTitle );
7786 SetupStore ("ShowSubtitles" , MpvPluginConfig -> ShowSubtitles = SetupShowSubtitles );
7887 SetupStore ("ExitAtEnd" , MpvPluginConfig -> ExitAtEnd = SetupExitAtEnd );
88+ SetupStore ("ShowAfterStop" , MpvPluginConfig -> ShowAfterStop = SetupShowAfterStop );
7989 SetupStore ("SavePos" , MpvPluginConfig -> SavePos = SetupSavePos );
8090 SetupStore ("SoftVol" , MpvPluginConfig -> SoftVol = SetupSoftVol );
8191}
0 commit comments