Quit the application when tryLubuntu is clicked.
This commit is contained in:
parent
6814333aba
commit
171a79b519
@ -17,6 +17,13 @@ InstallerPrompt::InstallerPrompt(QWidget *parent)
|
||||
// Set the button colors
|
||||
ui->tryLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);");
|
||||
ui->installLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);");
|
||||
|
||||
connect(ui->tryLubuntu, &QAbstractButton::clicked, this, &InstallerPrompt::tryLubuntu);
|
||||
}
|
||||
|
||||
void InstallerPrompt::tryLubuntu()
|
||||
{
|
||||
QApplication::quit();
|
||||
}
|
||||
|
||||
InstallerPrompt::~InstallerPrompt()
|
||||
|
@ -15,6 +15,9 @@ public:
|
||||
InstallerPrompt(QWidget *parent = nullptr);
|
||||
~InstallerPrompt();
|
||||
|
||||
public slots:
|
||||
void tryLubuntu();
|
||||
|
||||
private:
|
||||
Ui::InstallerPrompt *ui;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user