Skip to content

Commit

Permalink
fix(window): not reset window size in exit ClassRoom/Replay (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed Mar 16, 2021
1 parent a8fccc1 commit 3bab1b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions desktop/renderer-app/src/components/ExitRoomConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const ExitRoomConfirm = observer<ExitRoomConfirmProps>(function ExitRoomC

ipcAsyncByMainWindow("set-resizable", {
resizable: false,
minWidth: 1200,
minHeight: 668,
});

ipcAsyncByMainWindow("set-maximizable", {
Expand Down Expand Up @@ -116,6 +118,8 @@ export const ExitRoomConfirm = observer<ExitRoomConfirmProps>(function ExitRoomC

ipcAsyncByMainWindow("set-resizable", {
resizable: false,
minWidth: 1200,
minHeight: 668,
});

ipcAsyncByMainWindow("set-maximizable", {
Expand Down
2 changes: 2 additions & 0 deletions desktop/renderer-app/src/pages/ReplayPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ export const ReplayPage = observer<ReplayPageProps>(function ReplayPage() {

ipcAsyncByMainWindow("set-resizable", {
resizable: false,
minWidth: 1200,
minHeight: 668,
});

ipcAsyncByMainWindow("set-maximizable", {
Expand Down

0 comments on commit 3bab1b3

Please sign in to comment.