mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 01:13:39 +10:00
Game updates (#187)
* refactor: split umu launcher * feat: latest version picker + fixes * feat: frontend latest changes * feat: game update detection w/ setting * feat: fixes and refactor for game update * fix: windows ui * fix: deps * feat: update modifications * feat: missing ui and lock update * fix: create install dir on init * fix: clippy * fix: clippy x2 * feat: add configuration option to toggle updates * feat: uninstall dropdown on partiallyinstalled
This commit is contained in:
@@ -1,16 +1,24 @@
|
||||
<template>
|
||||
<NuxtLink to="/settings/compat">
|
||||
<HeaderWidget
|
||||
v-if="appState && appState.umuState !== 'NotNeeded'"
|
||||
:problem="notInstalled"
|
||||
>
|
||||
<img src="/proton-logo.png" class="relative z-50 size-5 brightness-[30%]" />
|
||||
<NuxtLink
|
||||
v-if="onLinux"
|
||||
to="/settings/compat"
|
||||
>
|
||||
<HeaderWidget :problem="protonError">
|
||||
<img
|
||||
src="/proton-logo.png"
|
||||
class="relative z-50 size-5 brightness-[30%]"
|
||||
/>
|
||||
</HeaderWidget>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const appState = useAppState();
|
||||
const onLinux = appState.value?.umuState !== "NotNeeded";
|
||||
const paths = onLinux ? await useProtonPaths() : undefined;
|
||||
|
||||
const notInstalled = appState.value?.umuState === "NotInstalled";
|
||||
const protonError = computed(
|
||||
() =>
|
||||
appState.value?.umuState === "NotInstalled" || !paths?.data.value.default,
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user