mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-23 01:35:38 +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"
|
type="radio"
|
||||||
name="shortcuts-view-mode"
|
name="shortcuts-view-mode"
|
||||||
value={value}
|
value={value}
|
||||||
checked={snapStates.settings.shortcutsViewMode === value}
|
checked={
|
||||||
|
snapStates.settings.shortcutsViewMode === value ||
|
||||||
|
(value === 'float-button' &&
|
||||||
|
!snapStates.settings.shortcutsViewMode)
|
||||||
|
}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
states.settings.shortcutsViewMode = e.target.value;
|
states.settings.shortcutsViewMode = e.target.value;
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue