diff --git a/src/components/applications/media-viewer/MediaViewer.jsx b/src/components/applications/media-viewer/MediaViewer.jsx
index a37f6b0..bc60629 100644
--- a/src/components/applications/media-viewer/MediaViewer.jsx
+++ b/src/components/applications/media-viewer/MediaViewer.jsx
@@ -1,5 +1,6 @@
// eslint-disable-next-line no-unused-vars
import { VirtualFile } from "../../../features/virtual-drive/virtual-file.js"
+import { useWindowsManager } from "../../../hooks/windows/WindowsManagerContext.js";
import styles from "./MediaViewer.module.css";
/**
@@ -8,9 +9,16 @@ import styles from "./MediaViewer.module.css";
* @param {VirtualFile} props.file
* @returns
*/
-export function MediaViewer({ file }) {
- if (file == null)
- return (
Use the File Explorer to open an image.
);
+export function MediaViewer({ file, close }) {
+ const windowsManager = useWindowsManager();
+
+ if (file == null) {
+ setTimeout(() => {
+ windowsManager.open("file-explorer", { startPath: "~/Images" });
+ close();
+ }, 10);
+ return;
+ }
if (!["png"].includes(file.extension))
return (Invalid file format.
);
diff --git a/src/components/task-bar/HomeMenu.jsx b/src/components/task-bar/HomeMenu.jsx
index 9099372..afcea73 100644
--- a/src/components/task-bar/HomeMenu.jsx
+++ b/src/components/task-bar/HomeMenu.jsx
@@ -55,8 +55,8 @@ export function HomeMenu({ active, setActive }) {