feat: port to Microsoft Windows
This commit is contained in:
@ -24,7 +24,7 @@ const loadProfile = async () => {
|
||||
await store.reloadProfile();
|
||||
|
||||
if (store.profile === null) {
|
||||
const file = await open({
|
||||
const exePath = await open({
|
||||
multiple: false,
|
||||
directory: false,
|
||||
filters: [
|
||||
@ -34,8 +34,8 @@ const loadProfile = async () => {
|
||||
},
|
||||
],
|
||||
});
|
||||
if (file !== null) {
|
||||
await store.initProfile(file);
|
||||
if (exePath !== null) {
|
||||
await store.initProfile(exePath);
|
||||
}
|
||||
}
|
||||
if (store.profile !== null) {
|
||||
@ -48,8 +48,8 @@ const loadProfile = async () => {
|
||||
|
||||
const isProfileDisabled = computed(() => store.profile === null);
|
||||
|
||||
const startline = () => {
|
||||
invoke('startline');
|
||||
const startline = async () => {
|
||||
await invoke('startline');
|
||||
|
||||
//startDisabled.value = true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user