mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 17:25:40 +03:00
Need a default view mode selection if null
This commit is contained in:
parent
aaf12e2c47
commit
e0688afdfc
1 changed files with 5 additions and 1 deletions
|
@ -235,7 +235,11 @@ function ShortcutsSettings() {
|
|||
type="radio"
|
||||
name="shortcuts-view-mode"
|
||||
value={value}
|
||||
checked={snapStates.settings.shortcutsViewMode === value}
|
||||
checked={
|
||||
snapStates.settings.shortcutsViewMode === value ||
|
||||
(value === 'float-button' &&
|
||||
!snapStates.settings.shortcutsViewMode)
|
||||
}
|
||||
onChange={(e) => {
|
||||
states.settings.shortcutsViewMode = e.target.value;
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue