@@ -27,6 +27,7 @@ @interface PlaybackPreferencesViewController ()
2727@property (nonatomic ) BOOL cliAddToSpecificPlaylist;
2828@property (nonatomic ) NSString *cliSpecificPlaylist;
2929@property (nonatomic ) BOOL resumeLastSession;
30+ @property (nonatomic ) BOOL alwaysResumeSessionPaused;
3031@property (nonatomic ) BOOL ignoreArchives;
3132@property (nonatomic ) BOOL stopAfterCurrentReset;
3233@property (nonatomic ) BOOL stopAfterCurrentAlbumReset;
@@ -72,6 +73,7 @@ - (instancetype)initWithCoder:(NSCoder *)coder
7273 _cliAddToSpecificPlaylist = deadbeef->conf_get_int (" cli_add_to_specific_playlist" , 1 ) ? YES : NO ;
7374 _cliSpecificPlaylist = conf_get_nsstr (" cli_add_playlist_name" , " Default" );
7475 _resumeLastSession = deadbeef->conf_get_int (" resume_last_session" , 1 ) ? YES : NO ;
76+ _alwaysResumeSessionPaused = deadbeef->conf_get_int (" resume_always_paused" , 0 ) ? YES : NO ;
7577 _ignoreArchives = deadbeef->conf_get_int (" ignore_archives" , 1 ) ? YES : NO ;
7678 _stopAfterCurrentReset = deadbeef->conf_get_int (" playlist.stop_after_current_reset" , 0 ) ? YES : NO ;
7779 _stopAfterCurrentAlbumReset = deadbeef->conf_get_int (" playlist.stop_after_album_reset" , 0 ) ? YES : NO ;
@@ -160,6 +162,12 @@ - (void)setResumeLastSession:(BOOL)resumeLastSession {
160162 deadbeef->sendmessage (DB_EV_CONFIGCHANGED, 0 , 0 , 0 );
161163}
162164
165+ - (void )setAlwaysResumeSessionPaused : (BOOL )alwaysResumeSessionPaused {
166+ _alwaysResumeSessionPaused = alwaysResumeSessionPaused;
167+ deadbeef->conf_set_int (" resume_always_paused" , alwaysResumeSessionPaused);
168+ deadbeef->sendmessage (DB_EV_CONFIGCHANGED, 0 , 0 , 0 );
169+ }
170+
163171- (void )setStopAfterCurrentReset : (BOOL )stopAfterCurrentReset {
164172 _stopAfterCurrentReset = stopAfterCurrentReset;
165173 deadbeef->conf_set_int (" playlist.stop_after_current_reset" , stopAfterCurrentReset);
0 commit comments