mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-06-08 01:23:36 +00:00
Fix close button
Fixes the close button on the home gui screen
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#ifdef _WINDOWS64
|
||||
#include "AchievementScreen.h"
|
||||
#include "StatsCounter.h"
|
||||
#include "Windows64_Minecraft.h"
|
||||
#endif
|
||||
#ifdef __ORBIS__
|
||||
#include <error_dialog.h>
|
||||
@@ -368,6 +369,12 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
case eControl_Exit:
|
||||
PostMessage(GetMinecraftWindowHWND(), WM_CLOSE, 0, 0);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default: __debugbreak();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user