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

This commit is contained in:
Butterscotch!
2022-11-24 14:02:05 -05:00
committed by GitHub
parent 46fedc2d3a
commit e45da2b979

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,
});