From f7d8f0084b23badf40d83b2ccdebe8931895cd17 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Tue, 23 Jan 2024 09:05:02 +0800 Subject: [PATCH] * Make remembered limit per playlist --- src/renderer/views/Playlist/Playlist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/views/Playlist/Playlist.js b/src/renderer/views/Playlist/Playlist.js index 72e2118df6a3c..a4617db2578a8 100644 --- a/src/renderer/views/Playlist/Playlist.js +++ b/src/renderer/views/Playlist/Playlist.js @@ -152,7 +152,7 @@ export default defineComponent({ this.getPlaylistInfoDebounce() }, userPlaylistVisibleVideoLimit (val) { - sessionStorage.setItem('Playlist/userPlaylistVisibleVideoLimit', val) + sessionStorage.setItem(`Playlist/userPlaylistVisibleVideoLimit/${this.playlistId}`, val) if (this.selectedUserPlaylistVideos.length < this.userPlaylistVisibleVideoLimit) { this.playlistItems = this.selectedUserPlaylistVideos @@ -162,7 +162,7 @@ export default defineComponent({ }, }, mounted: function () { - const limit = sessionStorage.getItem('Playlist/userPlaylistVisibleVideoLimit') + const limit = sessionStorage.getItem(`Playlist/userPlaylistVisibleVideoLimit/${this.playlistId}`) if (limit !== null) { this.userPlaylistVisibleVideoLimit = limit }