mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-17 17:37:13 +00:00
Renew the updater branch
Now with some actual consensus on what the updater will do!
This commit is contained in:
25
mmc_updater/src/UpdateDialog.cpp
Normal file
25
mmc_updater/src/UpdateDialog.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "UpdateDialog.h"
|
||||
|
||||
UpdateDialog::UpdateDialog()
|
||||
: m_autoClose(false)
|
||||
{
|
||||
}
|
||||
|
||||
void UpdateDialog::setAutoClose(bool autoClose)
|
||||
{
|
||||
m_autoClose = autoClose;
|
||||
}
|
||||
|
||||
bool UpdateDialog::autoClose() const
|
||||
{
|
||||
return m_autoClose;
|
||||
}
|
||||
|
||||
void UpdateDialog::updateFinished()
|
||||
{
|
||||
if (m_autoClose)
|
||||
{
|
||||
quit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user