Made it so the editor knows what folder your in

I put all the stuff for getting the current folder in comments since the
current folder is unused for now.
This commit is contained in:
Puppet committed 2025-08-19 11:45:12 -07:00
1 parent 3097541dc8
commit 530c290202
3 files changed
+9 -5

No files matched your search

+4
View File
@@ -3,6 +3,8 @@
import './Editor_globals.css'
import Image from "next/image";
// import { useSearchParams } from 'next/navigation';
// import { useState } from 'react'
import file_list_icon from "./assets/file_list_icon.svg";
@@ -11,6 +13,8 @@ export default function Editor_Layout ({
}: {
children: React.ReactNode
}) {
// const [projectType, setProjectType] = useState<string>(useSearchParams().get("folder") ?? "")
return (
<>
<div className='sidebar'>
+2 -2
View File
@@ -18,7 +18,7 @@ export default function ProjectManager_Projects () {
'projectmanager'
)
if (!projectManager) return
invoke('create_window', { windowType: 1 })
invoke('create_window', { windowType: 1, editorFolder: null })
const popup = await WebviewWindow.getByLabel('newprojectpopup')
if (!popup) return
await projectManager.setClosable(false)
@@ -41,7 +41,7 @@ export default function ProjectManager_Projects () {
'projectmanager'
)
if (!projectManager) return
invoke('create_window', { windowType: 2 })
invoke('create_window', { windowType: 2, editorFolder: "~/Desktop/php-fly-debug-folder" })
const editor = await WebviewWindow.getByLabel('editor')
if (!editor) return
projectManager.close()