mirror of
https://github.com/Zaarrg/stremio-community-v5.git
synced 2026-04-21 09:01:55 +00:00
Fix tray quit not saving window size
This commit is contained in:
parent
baa268317f
commit
3a29630d13
1 changed files with 5 additions and 0 deletions
|
|
@ -402,6 +402,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
break;
|
||||
case ID_TRAY_QUIT:
|
||||
if(g_mpv) mpv_command_string(g_mpv,"quit");
|
||||
WINDOWPLACEMENT wp;
|
||||
wp.length = sizeof(wp);
|
||||
if (GetWindowPlacement(hWnd, &wp)) {
|
||||
SaveWindowPlacement(wp);
|
||||
}
|
||||
DestroyWindow(hWnd);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue