Skip to content

Commit

Permalink
Merge pull request #769 from silentrald/bugfix/playlist-keep-content
Browse files Browse the repository at this point in the history
[bugfix] fix issue where playlist gets deleted when linked
  • Loading branch information
Zagrios authored Jan 31, 2025
2 parents 413996f + 757eb1f commit 8042f1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { PlaylistsManagerService } from "renderer/services/playlists-manager.ser
import { MapsManagerService } from "renderer/services/maps-manager.service";
import { map } from "rxjs";

export const LinkContentModal: ModalComponent<boolean, {version: BSVersion, contentType: "maps"|"playlists"|"avatars"|"sabers"|"platforms"|"blocks"}> = ({options: { data: { version, contentType } }, resolver }) => {
export const LinkContentModal: ModalComponent<void, {version: BSVersion, contentType: "maps"|"playlists"|"avatars"|"sabers"|"platforms"|"blocks"}> = ({options: { data: { version, contentType } }, resolver }) => {
const { text: t, element: te } = useTranslationV2();

const versionLinker = useService(VersionFolderLinkerService);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class ModelsManagerService {
return this.versionFolderLinked.linkVersionFolder({
version,
relativeFolder: MODEL_TYPE_FOLDERS[type],
options: { keepContents: res.data !== false },
options: { keepContents: true },
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/services/playlists-manager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class PlaylistsManagerService {
return this.linker.linkVersionFolder({
version,
relativeFolder: PlaylistsManagerService.RELATIVE_PLAYLISTS_FOLDER,
options: { keepContents: !!modalRes.data },
options: { keepContents: true },
});
}

Expand Down

0 comments on commit 8042f1b

Please sign in to comment.