mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Auto collapse menu bar when connection established
This commit is contained in:
@@ -623,9 +623,14 @@ int main(int argc, char *argv[]) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CHINESE_FONT
|
#if CHINESE_FONT
|
||||||
|
if (!joined) {
|
||||||
ImGui::Begin(u8"菜单", nullptr,
|
ImGui::Begin(u8"菜单", nullptr,
|
||||||
ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse |
|
ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse |
|
||||||
ImGuiWindowFlags_NoMove);
|
ImGuiWindowFlags_NoMove);
|
||||||
|
} else {
|
||||||
|
ImGui::SetNextWindowCollapsed(true, ImGuiCond_Once);
|
||||||
|
ImGui::Begin(u8"菜单", nullptr, ImGuiWindowFlags_None);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
ImGui::Begin("Menu", nullptr, ImGuiWindowFlags_NoResize);
|
ImGui::Begin("Menu", nullptr, ImGuiWindowFlags_NoResize);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
2
thirdparty/projectx
vendored
2
thirdparty/projectx
vendored
Submodule thirdparty/projectx updated: 3ea4d0724d...9122d0d15f
Reference in New Issue
Block a user