From e0688afdfc566760fbedb407219f11c928636454 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 16 Mar 2023 00:33:58 +0800 Subject: [PATCH] Need a default view mode selection if null --- src/components/shortcuts-settings.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/shortcuts-settings.jsx b/src/components/shortcuts-settings.jsx index 77bdbf0b..15334e39 100644 --- a/src/components/shortcuts-settings.jsx +++ b/src/components/shortcuts-settings.jsx @@ -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; }}