Compare commits

...
Author SHA1 Message Date
Prospector a8b7d1b88b fix: always hide custom window decorations on linux 2026-05-11 20:41:00 -07:00
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -214,7 +214,6 @@ window.addEventListener('online', () => {
})
const showOnboarding = ref(false)
const nativeDecorations = ref(false)
const os = ref('')
const isDevEnvironment = ref(false)
@@ -330,8 +329,9 @@ async function setupApp() {
const version = await getVersion()
showOnboarding.value = !onboarded
nativeDecorations.value = native_decorations
if (os.value !== 'MacOS') await getCurrentWindow().setDecorations(native_decorations)
if (os.value !== 'MacOS' && os.value !== 'Linux') {
await getCurrentWindow().setDecorations(native_decorations)
}
themeStore.setThemeState(theme)
themeStore.collapsedNavigation = collapsed_navigation
@@ -51,7 +51,7 @@ const alwaysShowAppControls = computed(() => themeStore.getFeatureFlag('always_s
const showControls = computed(
() =>
alwaysShowAppControls.value ||
(!nativeDecorations.value && (os.value === 'Windows' || os.value === 'Linux')),
(!nativeDecorations.value && os.value !== 'MacOS' && os.value !== 'Linux'),
)
onMounted(async () => {
@@ -60,7 +60,7 @@ onMounted(async () => {
const settings = await getSettings()
nativeDecorations.value = settings.native_decorations
if (os.value !== 'MacOS') {
if (os.value !== 'MacOS' && os.value !== 'Linux') {
await getCurrentWindow().setDecorations(nativeDecorations.value)
}
@@ -163,7 +163,7 @@ watch(
<Toggle id="hide-nametag-skins-page" v-model="settings.hide_nametag_skins_page" />
</div>
<div v-if="os !== 'MacOS'" class="mt-6 flex items-center justify-between gap-4">
<div v-if="os !== 'MacOS' && os !== 'Linux'" class="mt-6 flex items-center justify-between gap-4">
<div>
<h2 class="m-0 text-lg font-semibold text-contrast">
{{ formatMessage(messages.nativeDecorationsTitle) }}