forked from Mirror/Ryujinx
a9cb31e75f
* gui: Refactoring Part 1 * Fix ProfileDialog.glade path * Fix Application.Quit assert * Fix TitleUpdateWindow parent * Fix TitleUpdate selected item * Remove extra line in TitleUpdateWindow * Fix empty assign of Enum.TryParse * Add Patrons list in the About Window * update about error messages
27 lines
No EOL
715 B
C#
27 lines
No EOL
715 B
C#
using Gtk;
|
|
|
|
namespace Ryujinx.Ui.Applet
|
|
{
|
|
internal class ErrorAppletDialog : MessageDialog
|
|
{
|
|
public ErrorAppletDialog(Window parentWindow, DialogFlags dialogFlags, MessageType messageType, string[] buttons) : base(parentWindow, dialogFlags, messageType, ButtonsType.None, null)
|
|
{
|
|
int responseId = 0;
|
|
|
|
if (buttons != null)
|
|
{
|
|
foreach (string buttonText in buttons)
|
|
{
|
|
AddButton(buttonText, responseId);
|
|
responseId++;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
AddButton("OK", 0);
|
|
}
|
|
|
|
ShowAll();
|
|
}
|
|
}
|
|
} |