appDir() causes GUI config to not be loaded :c (#295)

This commit is contained in:
Butterscotch! authored and GitHub committed 2022-11-24 22:02:05 +03:00
1 parent 46fedc2d3a
commit e45da2b979
1 file changed
-3
-3
View File
@@ -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,
});