File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,9 @@ export function registerRecordingBarHandlers(
222222 return ;
223223 }
224224
225+ // Stop the timer immediately so UI shows recording has ended
226+ stopRecordingBarTimer ( ) ;
227+
225228 const platform = await initPlatform ( ) ;
226229 const mainWindow = getMainWindow ( ) ;
227230 await cleanupRecording ( platform , mainWindow , false ) ;
@@ -312,6 +315,7 @@ export function registerRecordingBarHandlers(
312315 win . webContents . send ( 'show-toast' , {
313316 message : 'Please set an output path before recording' ,
314317 type : 'warning' ,
318+ switchTab : 'recording' ,
315319 } ) ;
316320 }
317321 } ;
@@ -357,9 +361,10 @@ export function registerRecordingBarHandlers(
357361 const mainWindow = getMainWindow ( ) ;
358362
359363 try {
360- // Hide the app window from screen capture
364+ // Hide the main window during recording
361365 if ( mainWindow && ! mainWindow . isDestroyed ( ) ) {
362366 mainWindow . setContentProtection ( true ) ;
367+ mainWindow . hide ( ) ;
363368 }
364369
365370 // Hide system cursor FIRST
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ export function App() {
3333
3434 < Divider />
3535
36+ < TimerDisplay elapsedMs = { 0 } />
37+
3638 < div className = "flex-1" />
3739
3840 < MenuButton onOpenSettings = { openMainWindow } />
@@ -49,9 +51,8 @@ export function App() {
4951
5052 < TimerDisplay elapsedMs = { elapsedMs } />
5153
52- < Divider />
54+ < div className = "flex-1" />
5355
54- < ActionButton icon = "restart" onClick = { restart } disabled = { isLoading } />
5556 < ActionButton icon = "cancel" onClick = { cancel } disabled = { isLoading } variant = "danger" />
5657 </ div >
5758 ) ;
You can’t perform that action at this time.
0 commit comments