mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-15 19:53:59 +03:00
fix(admin): fix cpu pinning showing as disabled when thread 0 is configured (#2419)
This commit is contained in:
@@ -390,7 +390,7 @@ class EditServer extends EditRecord
|
||||
->label(trans('admin/server.cpu_pin'))->inlineLabel()->inline()
|
||||
->default(0)
|
||||
->afterStateUpdated(fn (Set $set) => $set('threads', []))
|
||||
->formatStateUsing(fn (Get $get) => !empty($get('threads')))
|
||||
->formatStateUsing(fn (Get $get) => filled($get('threads')))
|
||||
->live()
|
||||
->stateCast(new BooleanStateCast(false, true))
|
||||
->options([
|
||||
|
||||
Reference in New Issue
Block a user