fix theme list and add launching server with game

This commit is contained in:
SpikeHD
2022-06-05 21:40:16 -07:00
parent 8db8dd12e9
commit f5bb2b9bc5
2 changed files with 18 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ const defaultTheme = {
export async function getThemeList() {
// Do some invoke to backend to get the theme list
const themes = await invoke('get_theme_list', {
data_dir: `${await dataDir()}/cultivation`
dataDir: `${await dataDir()}/cultivation`
}) as BackendThemeList[]
const list: ThemeList[] = [
// ALWAYS include default theme