move app data dir to about instead of debug
This commit is contained in:
parent
7c04ee85a7
commit
1fd08082e4
3 changed files with 7 additions and 7 deletions
|
|
@ -4,6 +4,7 @@ import { openUrl } from "@tauri-apps/plugin-opener";
|
|||
import { SettingsGroup } from "../ui/SettingsGroup";
|
||||
import { SettingContainer } from "../ui/SettingContainer";
|
||||
import { Button } from "../ui/Button";
|
||||
import { AppDataDirectory } from "./AppDataDirectory";
|
||||
|
||||
export const AboutSettings: React.FC = () => {
|
||||
const [version, setVersion] = useState("");
|
||||
|
|
@ -41,6 +42,8 @@ export const AboutSettings: React.FC = () => {
|
|||
<span className="text-sm font-mono">v{version}</span>
|
||||
</SettingContainer>
|
||||
|
||||
<AppDataDirectory descriptionMode="tooltip" grouped={true} />
|
||||
|
||||
<SettingContainer
|
||||
title="Source Code"
|
||||
description="View source code and contribute"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import React from "react";
|
||||
import { WordCorrectionThreshold } from "./debug/WordCorrectionThreshold";
|
||||
import { AppDataDirectory } from "./AppDataDirectory";
|
||||
import { SettingsGroup } from "../ui/SettingsGroup";
|
||||
import { HistoryLimit } from "./HistoryLimit";
|
||||
import { PasteMethodSetting } from "./PasteMethod";
|
||||
|
|
@ -20,7 +19,6 @@ export const DebugSettings: React.FC = () => {
|
|||
description="Choose a sound theme for recording start and stop feedback"
|
||||
/>
|
||||
<WordCorrectionThreshold descriptionMode="tooltip" grouped={true} />
|
||||
<AppDataDirectory descriptionMode="tooltip" grouped={true} />
|
||||
<HistoryLimit descriptionMode="tooltip" grouped={true} />
|
||||
<AlwaysOnMicrophone descriptionMode="tooltip" grouped={true} />
|
||||
<MuteWhileRecording descriptionMode="tooltip" grouped={true} />
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ interface MuteWhileRecordingToggleProps {
|
|||
grouped?: boolean;
|
||||
}
|
||||
|
||||
export const MuteWhileRecording: React.FC<MuteWhileRecordingToggleProps> = React.memo(
|
||||
({ descriptionMode = "tooltip", grouped = false }) => {
|
||||
export const MuteWhileRecording: React.FC<MuteWhileRecordingToggleProps> =
|
||||
React.memo(({ descriptionMode = "tooltip", grouped = false }) => {
|
||||
const { getSetting, updateSetting, isUpdating } = useSettings();
|
||||
|
||||
const muteEnabled = getSetting("mute_while_recording") ?? false;
|
||||
|
|
@ -18,11 +18,10 @@ export const MuteWhileRecording: React.FC<MuteWhileRecordingToggleProps> = React
|
|||
checked={muteEnabled}
|
||||
onChange={(enabled) => updateSetting("mute_while_recording", enabled)}
|
||||
isUpdating={isUpdating("mute_while_recording")}
|
||||
label="Mute while recording"
|
||||
label="Mute While Recording"
|
||||
description="Automatically mute all sound output while Handy is recording, then restore it when finished."
|
||||
descriptionMode={descriptionMode}
|
||||
grouped={grouped}
|
||||
/>
|
||||
);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue