[next]**设置,功能导航中的显示最近使用功能需要默认关闭**

This commit is contained in:
RememBerBer
2026-08-27 08:50:31 +08:00
parent 3c6c69b1d1
commit 998cde47d9
2 changed files with 7 additions and 1 deletions
@@ -6,6 +6,7 @@ it('uses the MooTool Next visual defaults', () => {
expect(defaultAppSettings.appearance.interfaceStyle).toBe('modern')
expect(defaultAppSettings.appearance.fontSize).toBe(13)
expect(defaultAppSettings.layout.navigationStyle).toBe('classic')
expect(defaultAppSettings.layout.showRecent).toBe(false)
expect(defaultAppSettings.editor.quickNoteFontSize).toBe(14)
expect(defaultAppSettings.editor.jsonFontName).toBe('ui-monospace')
expect(defaultAppSettings.editor.quickNoteFontName).toBe('ui-monospace')
@@ -22,9 +23,14 @@ describe('mergeSettings', () => {
expect(settings.general.language).toBe('en-US')
expect(settings.general.trayEnabled).toBe(defaultAppSettings.general.trayEnabled)
expect(settings.layout.compactNavigation).toBe(true)
expect(settings.layout.showRecent).toBe(false)
expect(settings.appearance).toEqual(defaultAppSettings.appearance)
})
it('preserves an explicit recent-tools preference', () => {
expect(mergeSettings(defaultAppSettings, { layout: { showRecent: true } }).layout.showRecent).toBe(true)
})
it('normalizes numeric settings at their supported boundaries', () => {
const settings = mergeSettings(defaultAppSettings, {
appearance: { fontSize: 200 },
+1 -1
View File
@@ -139,7 +139,7 @@ export const defaultAppSettings: AppSettings = {
unifiedBackground: true
},
layout: {
showRecent: true,
showRecent: false,
compactNavigation: false,
showSeparators: true,
hideNavigationTitles: false,