Browse Source

Remove button number limit from Windows dialog_show() implementation.

bruvzg 10 tháng trước cách đây
mục cha
commit
335b42d437
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      platform/windows/display_server_windows.cpp

+ 1 - 1
platform/windows/display_server_windows.cpp

@@ -2743,7 +2743,7 @@ Error DisplayServerWindows::dialog_show(String p_title, String p_description, Ve
 	config.pszWindowTitle = (LPCWSTR)(title.get_data());
 	config.pszContent = (LPCWSTR)(message.get_data());
 
-	const int button_count = MIN((int)buttons.size(), 8);
+	const int button_count = buttons.size();
 	config.cButtons = button_count;
 
 	// No dynamic stack array size :(