fix: update history preview line limit to null and reset button action in ClipboardHistorySettings component

This commit is contained in:
Sergey Kurdin 2025-06-20 23:44:12 -04:00
parent c00ff2b33f
commit c7219cf014
2 changed files with 2 additions and 3 deletions

View File

@ -429,9 +429,8 @@ export default function ClipboardHistorySettings() {
<Button
variant="secondary"
size="sm"
disabled={historyPreviewLineLimit === 5}
onClick={() => {
setHistoryPreviewLineLimit(5)
setHistoryPreviewLineLimit(0)
}}
className="text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1"
>

View File

@ -294,7 +294,7 @@ const initialState: SettingsStoreState & Settings = {
isFirstRunAfterUpdate: false,
clipTextMinLength: 0,
clipTextMaxLength: 5000,
historyPreviewLineLimit: 5,
historyPreviewLineLimit: null,
isImageCaptureDisabled: false,
isMenuItemCopyOnlyEnabled: false,
isNoteIconsEnabled: true,