chore: Some small tweaks

This commit is contained in:
LynithDev 2024-09-17 20:35:32 +02:00
parent 3e67a85a8d
commit c0ac142f11
3 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1,8 @@
import type { Ref } from '@solid-primitives/refs';
import type { OnUpdatedEventListenerArgs, OverlayScrollbars } from 'overlayscrollbars';
import { AlignBottom01Icon } from '@untitled-theme/icons-solid';
import { ChevronDownDoubleIcon } from '@untitled-theme/icons-solid';
import { OverlayScrollbarsComponent, type OverlayScrollbarsComponentRef } from 'overlayscrollbars-solid';
import { createEffect, createMemo, createSignal, Index, Show, untrack } from 'solid-js';
import type { Ref } from '@solid-primitives/refs';
import type { OnUpdatedEventListenerArgs, OverlayScrollbars } from 'overlayscrollbars';
import Button from '../base/Button';
import styles from './FormattedLog.module.scss';
@ -47,7 +47,7 @@ function FormattedLog(props: FormattedLogProps) {
<Button.Toggle
buttonStyle="icon"
checked={shouldScroll}
children={<AlignBottom01Icon />}
children={<ChevronDownDoubleIcon />}
class="h-full! rounded-md! py-1!"
onChecked={toggleAutoScroll}
/>

View file

@ -1,6 +1,6 @@
import type { ManagedPackage, Providers } from '@onelauncher/client/bindings';
import ModrinthImage from '~assets/logos/modrinth.svg?component-solid';
import { type Component, type JSX, Match, Show, splitProps, Switch } from 'solid-js';
import type { ManagedPackage, Providers } from '@onelauncher/client/bindings';
export function getProviderLogoElement(provider: ManagedPackage | Providers): string | Component {
const providerName = (typeof provider === 'string' ? provider : provider.provider)?.toLowerCase() as Lowercase<Providers>;

View file

@ -449,9 +449,9 @@ impl Processor {
#[cfg(target_os = "linux")]
{
if enable_gamemode.is_some_and(|x| x == true) {
// TODO: maybe just ignore the error...?
onelauncher_gamemode::request_start_for_wrapper(pid)
.map_err(|e| anyhow::anyhow!("failed to enable gamemode: {e}"))?;
if let Err(err) = onelauncher_gamemode::request_start_for_wrapper(pid) {
tracing::warn!("failed to enable gamemode, continuing: {}", err);
};
}
}