Skip to content

Commit

Permalink
overlay setting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbach committed May 18, 2024
1 parent 838b253 commit 6e7e39f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/domain/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export const openAppWindow = (
};

export const openRecorderOverlayWindow = async () => {
if (!(await getSettings()).ui.useOverlayTool) {
return;
}

const width = 360;

if (recordingOverlay && !recordingOverlay.isDestroyed()) {
Expand Down
7 changes: 7 additions & 0 deletions src/renderer/settings/general-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ export const GeneralSettings: FC = () => {
onCheckedChange={(value) => mainApi.setAutoStart(value)}
/>

<SettingsSwitchField
form={form}
field="ui.useOverlayTool"
label="Use Recording overlay"
description="When the Pensieve window is closed during recordings, a small overlay will be displayed to control the recording."
/>

<SettingsTextField
label="Recordings folder"
description="The folder on your computer where recording data is stored."
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const defaultSettings = {
dark: true,
autoStart: true,
trayRunningNotificationShown: false,
useOverlayTool: true, // TODO setting and usage
useOverlayTool: true,
},
llm: {
enabled: true,
Expand Down

0 comments on commit 6e7e39f

Please sign in to comment.