Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Polyfrost/OneLauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliesnug committed Sep 17, 2024
2 parents a1c7649 + c0ac142 commit 2ed2891
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions apps/frontend/src/ui/components/content/FormattedLog.tsx
Original file line number Diff line number Diff line change
@@ -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';

Check failure on line 4 in apps/frontend/src/ui/components/content/FormattedLog.tsx

View workflow job for this annotation

GitHub Actions / EcmaScript Checks

Expected "@solid-primitives/refs" (type) to come before "solid-js" (external)
import type { OnUpdatedEventListenerArgs, OverlayScrollbars } from 'overlayscrollbars';
import Button from '../base/Button';
import styles from './FormattedLog.module.scss';

Expand Down Expand Up @@ -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}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/ui/components/content/ProviderIcon.tsx
Original file line number Diff line number Diff line change
@@ -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';

Check failure on line 3 in apps/frontend/src/ui/components/content/ProviderIcon.tsx

View workflow job for this annotation

GitHub Actions / EcmaScript Checks

Expected "@onelauncher/client/bindings" (type) to come before "solid-js" (external)

export function getProviderLogoElement(provider: ManagedPackage | Providers): string | Component {
const providerName = (typeof provider === 'string' ? provider : provider.provider)?.toLowerCase() as Lowercase<Providers>;
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/store/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}
}

Expand Down

0 comments on commit 2ed2891

Please sign in to comment.