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 { SettingsGroup } from "../ui/SettingsGroup";
|
||||||
import { SettingContainer } from "../ui/SettingContainer";
|
import { SettingContainer } from "../ui/SettingContainer";
|
||||||
import { Button } from "../ui/Button";
|
import { Button } from "../ui/Button";
|
||||||
|
import { AppDataDirectory } from "./AppDataDirectory";
|
||||||
|
|
||||||
export const AboutSettings: React.FC = () => {
|
export const AboutSettings: React.FC = () => {
|
||||||
const [version, setVersion] = useState("");
|
const [version, setVersion] = useState("");
|
||||||
|
|
@ -41,6 +42,8 @@ export const AboutSettings: React.FC = () => {
|
||||||
<span className="text-sm font-mono">v{version}</span>
|
<span className="text-sm font-mono">v{version}</span>
|
||||||
</SettingContainer>
|
</SettingContainer>
|
||||||
|
|
||||||
|
<AppDataDirectory descriptionMode="tooltip" grouped={true} />
|
||||||
|
|
||||||
<SettingContainer
|
<SettingContainer
|
||||||
title="Source Code"
|
title="Source Code"
|
||||||
description="View source code and contribute"
|
description="View source code and contribute"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { WordCorrectionThreshold } from "./debug/WordCorrectionThreshold";
|
import { WordCorrectionThreshold } from "./debug/WordCorrectionThreshold";
|
||||||
import { AppDataDirectory } from "./AppDataDirectory";
|
|
||||||
import { SettingsGroup } from "../ui/SettingsGroup";
|
import { SettingsGroup } from "../ui/SettingsGroup";
|
||||||
import { HistoryLimit } from "./HistoryLimit";
|
import { HistoryLimit } from "./HistoryLimit";
|
||||||
import { PasteMethodSetting } from "./PasteMethod";
|
import { PasteMethodSetting } from "./PasteMethod";
|
||||||
|
|
@ -20,7 +19,6 @@ export const DebugSettings: React.FC = () => {
|
||||||
description="Choose a sound theme for recording start and stop feedback"
|
description="Choose a sound theme for recording start and stop feedback"
|
||||||
/>
|
/>
|
||||||
<WordCorrectionThreshold descriptionMode="tooltip" grouped={true} />
|
<WordCorrectionThreshold descriptionMode="tooltip" grouped={true} />
|
||||||
<AppDataDirectory descriptionMode="tooltip" grouped={true} />
|
|
||||||
<HistoryLimit descriptionMode="tooltip" grouped={true} />
|
<HistoryLimit descriptionMode="tooltip" grouped={true} />
|
||||||
<AlwaysOnMicrophone descriptionMode="tooltip" grouped={true} />
|
<AlwaysOnMicrophone descriptionMode="tooltip" grouped={true} />
|
||||||
<MuteWhileRecording descriptionMode="tooltip" grouped={true} />
|
<MuteWhileRecording descriptionMode="tooltip" grouped={true} />
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ interface MuteWhileRecordingToggleProps {
|
||||||
grouped?: boolean;
|
grouped?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MuteWhileRecording: React.FC<MuteWhileRecordingToggleProps> = React.memo(
|
export const MuteWhileRecording: React.FC<MuteWhileRecordingToggleProps> =
|
||||||
({ descriptionMode = "tooltip", grouped = false }) => {
|
React.memo(({ descriptionMode = "tooltip", grouped = false }) => {
|
||||||
const { getSetting, updateSetting, isUpdating } = useSettings();
|
const { getSetting, updateSetting, isUpdating } = useSettings();
|
||||||
|
|
||||||
const muteEnabled = getSetting("mute_while_recording") ?? false;
|
const muteEnabled = getSetting("mute_while_recording") ?? false;
|
||||||
|
|
@ -18,11 +18,10 @@ export const MuteWhileRecording: React.FC<MuteWhileRecordingToggleProps> = React
|
||||||
checked={muteEnabled}
|
checked={muteEnabled}
|
||||||
onChange={(enabled) => updateSetting("mute_while_recording", enabled)}
|
onChange={(enabled) => updateSetting("mute_while_recording", enabled)}
|
||||||
isUpdating={isUpdating("mute_while_recording")}
|
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."
|
description="Automatically mute all sound output while Handy is recording, then restore it when finished."
|
||||||
descriptionMode={descriptionMode}
|
descriptionMode={descriptionMode}
|
||||||
grouped={grouped}
|
grouped={grouped}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
});
|
||||||
);
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue