feat: slightly better config

This commit is contained in:
2025-02-25 02:01:24 +01:00
parent b7fe76b6ff
commit 43fd622322
7 changed files with 150 additions and 30 deletions

View File

@ -22,10 +22,10 @@ store.setupListeners();
const currentTab = ref('3');
const startEnabled = ref(false);
const loadProfile = async () => {
const loadProfile = async (openWindow: boolean) => {
await store.reloadProfile();
if (store.profile === null) {
if (store.profile === null && openWindow) {
const exePath = await open({
multiple: false,
directory: false,
@ -61,7 +61,7 @@ onOpenUrl((urls) => {
});
onMounted(async () => {
await loadProfile();
await loadProfile(false);
});
listen('launch-end', () => {
@ -109,18 +109,44 @@ listen('launch-end', () => {
<Options />
</TabPanel>
<TabPanel value="3">
UNDER CONSTRUCTION<br /><br />
<Button
:disabled="!isProfileDisabled"
label="Create profile"
icon="pi pi-plus"
aria-label="open-executable"
@click="loadProfile()"
/>
<strong>UNDER CONSTRUCTION</strong><br />Many features are
missing.<br />Existing features are expected to break any
time.
<div v-if="isProfileDisabled">
<br />Select <code>mu3.exe</code> to create a
profile:<br />
<Button
label="Create profile"
icon="pi pi-plus"
aria-label="open-executable"
@click="loadProfile(true)"
/><br />
<div
style="
margin-top: 5px;
font-weight: bolder;
font-size: 3em;
color: red;
line-height: 1.1em;
"
>
segatools 2024-12-23 or later has to be installed
</div>
(this will change in the future)
</div>
<img
v-if="store.profile?.game === 'Ongeki'"
src="/sticker-ongeki.svg"
class="fixed bottom-0 right-0"
/>
<br /><br /><br />
<Button
style="position: fixed; left: 10px; bottom: 10px"
icon="pi pi-discord"
as="a"
target="_blank"
href="https://discord.gg/jxvzHjjEmc"
/>
</TabPanel>
</TabPanels>
</Tabs>