Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

301 B
Raw Blame
import { focusManager } from "@tanstack/solid-query";
import { getCurrentWindow } from "@tauri-apps/api/window";

export async function hideCurrentWindow() {
	const currentWindow = getCurrentWindow();
	await currentWindow.hide();
	if (currentWindow.label === "main") focusManager.setFocused(false);
}