diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-20 00:45:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-03 21:37:04 +0100 |
| commit | 9b841fddd3aa4a1117b03299bce964c5e4b205d9 (patch) | |
| tree | 61022295269b8e55a5fbefabb88183dd96d1afcf /src/lib/config.h | |
| parent | 8a4591d1f77e2de6e92385e0ab0b3efc714feeb9 (diff) | |
Use SQLite for show playlists.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index d562481be..1e469bac2 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -111,7 +111,7 @@ public: SOUND, SOUND_OUTPUT, PLAYER_CONTENT_DIRECTORY, - PLAYER_PLAYLIST_DIRECTORY, + SHOW_PLAYLISTS_FILE, PLAYER_DEBUG_LOG, KDM_DEBUG_LOG, HISTORY, @@ -586,8 +586,8 @@ public: return _player_content_directory; } - boost::optional<boost::filesystem::path> player_playlist_directory() const { - return _player_playlist_directory; + boost::filesystem::path show_playlists_file() const { + return _show_playlists_file; } boost::optional<boost::filesystem::path> player_kdm_directory() const { @@ -1161,16 +1161,8 @@ public: changed(PLAYER_CONTENT_DIRECTORY); } - void set_player_playlist_directory(boost::filesystem::path p) { - maybe_set(_player_playlist_directory, p, PLAYER_PLAYLIST_DIRECTORY); - } - - void unset_player_playlist_directory() { - if (!_player_playlist_directory) { - return; - } - _player_playlist_directory = boost::none; - changed(PLAYER_PLAYLIST_DIRECTORY); + void set_show_playlists_file(boost::filesystem::path p) { + maybe_set(_show_playlists_file, p, SHOW_PLAYLISTS_FILE); } void set_player_kdm_directory(boost::filesystem::path p) { @@ -1494,7 +1486,7 @@ private: for playback. */ boost::optional<boost::filesystem::path> _player_content_directory; - boost::optional<boost::filesystem::path> _player_playlist_directory; + boost::filesystem::path _show_playlists_file; boost::optional<boost::filesystem::path> _player_kdm_directory; boost::optional<AudioMapping> _audio_mapping; std::vector<dcp::LanguageTag> _custom_languages; |
