mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 01:02:39 +02:00
Add a single-session desktop window picker and route screenshot assist, region crop, and fullscreen capture through the cached frame.
This commit is contained in:
parent
8b542ca3dd
commit
9cd4daa6b3
7 changed files with 396 additions and 65 deletions
|
|
@ -7,7 +7,7 @@ import {
|
|||
requestScreenRecording,
|
||||
restartApp,
|
||||
} from '../modules/permissions';
|
||||
import { captureCurrentDisplayDataUrl } from '../modules/screen-region-picker';
|
||||
import { pickOpenWindowCapture } from '../modules/window-picker';
|
||||
import {
|
||||
selectFolder,
|
||||
addWatchedFolder,
|
||||
|
|
@ -85,7 +85,8 @@ export function registerIpcHandlers(): void {
|
|||
requestScreenRecording();
|
||||
return null;
|
||||
}
|
||||
return captureCurrentDisplayDataUrl();
|
||||
const picked = await pickOpenWindowCapture();
|
||||
return picked?.dataUrl ?? null;
|
||||
});
|
||||
|
||||
// Folder sync handlers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue