refactor: add sorting options to library page for Series and BoxSets

This commit is contained in:
Prayag Prajapati committed 2024-07-12 00:34:47 +05:30
1 parent 326b093210
commit c21483ee5b
76 files changed
+7110 -2350

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
import { appWindow } from "@tauri-apps/api/window";
import { WebviewWindow as appWindow } from "@tauri-apps/api/webviewWindow";
import React, { useLayoutEffect } from "react";
import Backdrop from "@mui/material/Backdrop";
@@ -188,7 +188,7 @@ function VideoPlayer() {
};
const handleExitPlayer = async () => {
appWindow.setFullscreen(false);
appWindow.getCurrent().setFullscreen(false);
if (subtitleRenderer) {
subtitleRenderer.destroy();
}
@@ -240,7 +240,7 @@ function VideoPlayer() {
case "F":
case "f":
setAppFullscreen((state) => {
appWindow.setFullscreen(!state);
appWindow.getCurrent().setFullscreen(!state);
return !state;
});
break;
@@ -546,7 +546,7 @@ function VideoPlayer() {
<IconButton
onClick={async () => {
setAppFullscreen((state) => {
appWindow.setFullscreen(!state);
appWindow.getCurrent().setFullscreen(!state);
return !state;
});
}}