refactor: remove config file location display feature
Remove the config file location display from settings dialog to simplify the user interface. Users who need to access the config file can still do so through the advanced settings section. Changes: - Removed ConfigPathDisplay component and its usage - Removed configPath and openConfigFolder from useSettings hook - Removed configPath and openConfigFolder from useSettingsMetadata hook - Removed related i18n keys: configFileLocation, openFolder - Updated settings dialog to remove the config path display section This simplifies the settings UI while maintaining access to config directory management through the advanced settings tab.
This commit is contained in:
@@ -13,7 +13,6 @@ import { Button } from "@/components/ui/button";
|
||||
import { settingsApi } from "@/lib/api";
|
||||
import { LanguageSettings } from "@/components/settings/LanguageSettings";
|
||||
import { WindowSettings } from "@/components/settings/WindowSettings";
|
||||
import { ConfigPathDisplay } from "@/components/settings/ConfigPathDisplay";
|
||||
import { DirectorySettings } from "@/components/settings/DirectorySettings";
|
||||
import { ImportExportSection } from "@/components/settings/ImportExportSection";
|
||||
import { AboutSection } from "@/components/settings/AboutSection";
|
||||
@@ -38,7 +37,6 @@ export function SettingsDialog({
|
||||
isLoading,
|
||||
isSaving,
|
||||
isPortable,
|
||||
configPath,
|
||||
appConfigDir,
|
||||
resolvedDirs,
|
||||
updateSettings,
|
||||
@@ -48,7 +46,6 @@ export function SettingsDialog({
|
||||
browseAppConfigDir,
|
||||
resetDirectory,
|
||||
resetAppConfigDir,
|
||||
openConfigFolder,
|
||||
saveSettings,
|
||||
resetSettings,
|
||||
requiresRestart,
|
||||
@@ -208,10 +205,6 @@ export function SettingsDialog({
|
||||
settings={settings}
|
||||
onChange={updateSettings}
|
||||
/>
|
||||
<ConfigPathDisplay
|
||||
path={configPath}
|
||||
onOpen={openConfigFolder}
|
||||
/>
|
||||
</>
|
||||
) : null}
|
||||
</TabsContent>
|
||||
|
||||
Reference in New Issue
Block a user