Skip to content

Commit 1da4179

Browse files
committed
updating max screenshots to 2
1 parent 3b3302e commit 1da4179

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

electron/ScreenshotHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const execFileAsync = promisify(execFile)
1212
export class ScreenshotHelper {
1313
private screenshotQueue: string[] = []
1414
private extraScreenshotQueue: string[] = []
15-
private readonly MAX_SCREENSHOTS = 5
15+
private readonly MAX_SCREENSHOTS = 2
1616

1717
private readonly screenshotDir: string
1818
private readonly extraScreenshotDir: string

electron/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ async function createWindow(): Promise<void> {
297297
// Configure window behavior
298298
state.mainWindow.webContents.setZoomFactor(1)
299299
if (isDev) {
300-
state.mainWindow.webContents.openDevTools()
300+
// state.mainWindow.webContents.openDevTools()
301301
}
302302
state.mainWindow.webContents.setWindowOpenHandler(({ url }) => {
303303
console.log("Attempting to open URL:", url)
@@ -310,7 +310,6 @@ async function createWindow(): Promise<void> {
310310

311311
// Enhanced screen capture resistance
312312
state.mainWindow.setContentProtection(true)
313-
314313

315314
state.mainWindow.setVisibleOnAllWorkspaces(true, {
316315
visibleOnFullScreen: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interview-coder-v1",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"main": "dist-electron/main.js",
55
"scripts": {
66
"clean": "rimraf dist dist-electron",

src/components/Queue/QueueCommands.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { useState, useEffect, useRef } from "react"
33
import { supabase } from "../../lib/supabase"
44
import { useToast } from "../../contexts/toast"
55
import { LanguageSelector } from "../shared/LanguageSelector"
6-
import { COMMAND_KEY } from '../../utils/platform'
6+
import { COMMAND_KEY } from "../../utils/platform"
77

88
interface QueueCommandsProps {
99
onTooltipVisibilityChange: (visible: boolean, height: number) => void
@@ -75,7 +75,11 @@ const QueueCommands: React.FC<QueueCommandsProps> = ({
7575
}}
7676
>
7777
<span className="text-[11px] leading-none truncate">
78-
{screenshotCount === 0 ? "Take first screenshot" : "Screenshot"}
78+
{screenshotCount === 0
79+
? "Take first screenshot"
80+
: screenshotCount === 1
81+
? "Take second screenshot"
82+
: "Reset first screenshot"}
7983
</span>
8084
<div className="flex gap-1">
8185
<button className="bg-white/10 rounded-md px-1.5 py-1 text-[11px] leading-none text-white/70">

0 commit comments

Comments
 (0)