Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ui): hide timeline when clicking permission buttons

Louis Beaumonta39c416f1c04
diff --git a/screenpipe-app-tauri/components/status/permission-buttons.tsx b/screenpipe-app-tauri/components/status/permission-buttons.tsx
index b0ce9e99d..172fd9882 100644
--- a/screenpipe-app-tauri/components/status/permission-buttons.tsx
+++ b/screenpipe-app-tauri/components/status/permission-buttons.tsx
@@ -60,6 +60,9 @@ export const PermissionButtons: React.FC<PermissionButtonsProps> = ({
? "screenRecording"
: "microphone";
+ // Hide the main window so user can see the system settings
+ await commands.closeWindow("Main");
+
await commands.requestPermission(permissionType);
// Refresh permissions after request
@@ -95,6 +98,9 @@ export const PermissionButtons: React.FC<PermissionButtonsProps> = ({
? "screenRecording"
: "microphone";
+ // Hide the main window so user can see the system settings
+ await commands.closeWindow("Main");
+
await commands.openPermissionSettings(permissionType);
} catch (error) {
console.error(`failed to open ${type} permission settings:`, error);