mirror of https://github.com/bsnes-emu/bsnes.git
17 lines
369 B
C++
17 lines
369 B
C++
ErrorDialog::ErrorDialog() {
|
|
errorDialog = this;
|
|
|
|
onClose([&] { setVisible(false); scanDialog->show(); });
|
|
layout.setMargin(5);
|
|
errorLog.setEditable(false);
|
|
closeButton.setText("Close").onActivate([&] { doClose(); });
|
|
|
|
setSize({800, 360});
|
|
setCentered();
|
|
}
|
|
|
|
auto ErrorDialog::show(const string& text) -> void {
|
|
errorLog.setText(text);
|
|
setVisible();
|
|
}
|