mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Add about dialog
This commit is contained in:
@@ -2119,6 +2119,9 @@ OBSBasic::~OBSBasic()
|
||||
if (advAudioWindow)
|
||||
delete advAudioWindow;
|
||||
|
||||
if (about)
|
||||
delete about;
|
||||
|
||||
obs_display_remove_draw_callback(ui->preview->GetDisplay(),
|
||||
OBSBasic::RenderMain, this);
|
||||
|
||||
@@ -6690,6 +6693,17 @@ void OBSBasic::on_stats_triggered()
|
||||
stats = statsDlg;
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionShowAbout_triggered()
|
||||
{
|
||||
if (about)
|
||||
about->close();
|
||||
|
||||
about = new OBSAbout(this);
|
||||
about->show();
|
||||
|
||||
about->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
}
|
||||
|
||||
ColorSelect::ColorSelect(QWidget *parent)
|
||||
: QWidget(parent),
|
||||
ui(new Ui::ColorSelect)
|
||||
|
||||
Reference in New Issue
Block a user