From e45da2b979c1fd3fcb705ba6d124e9aef85280c8 Mon Sep 17 00:00:00 2001 From: Butterscotch! Date: Thu, 24 Nov 2022 14:02:05 -0500 Subject: [PATCH] appDir() causes GUI config to not be loaded :c (#295) --- gui/src/hooks/config.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/gui/src/hooks/config.ts b/gui/src/hooks/config.ts index ab206049e..af38303c3 100644 --- a/gui/src/hooks/config.ts +++ b/gui/src/hooks/config.ts @@ -4,7 +4,6 @@ import { writeFile, createDir, } from '@tauri-apps/api/fs'; -import { appDir } from '@tauri-apps/api/path'; import { createContext, useContext, useState } from 'react'; @@ -57,8 +56,6 @@ export function useConfigProvider(): ConfigContext { loadConfig: async () => { setLoading(true); try { - const appDirPath = await appDir(); - console.log(appDirPath); const json = await readTextFile('config.json', { dir: BaseDirectory.App, });