ui: Fix Button Spacing

This commit is contained in:
MasonT8198 2021-05-18 17:56:29 -04:00 committed by mborgerson
parent 1b3cf1ead8
commit 16906a8dbb
1 changed files with 2 additions and 1 deletions

View File

@ -926,7 +926,8 @@ public:
if (ImGui::Button("Help", ImVec2(120*g_ui_scale, 0))) {
xemu_open_web_browser("https://github.com/mborgerson/xemu/wiki/Networking");
}
ImGui::SameLine();
ImGui::SetCursorPosX(ImGui::GetWindowWidth()-(120+10)*g_ui_scale);
ImGui::SetItemDefaultFocus();
if (ImGui::Button(is_enabled ? "Disable" : "Enable", ImVec2(120*g_ui_scale, 0))) {