mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-1628 Uncrustify
This commit is contained in:
parent
cb1d9586eb
commit
ff1ad84302
@ -38,6 +38,7 @@ void AutoUpdatePage::enableButtons(bool enable = false)
|
||||
void AutoUpdatePage::autoUpdate()
|
||||
{
|
||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
||||
|
||||
Q_ASSERT(pm);
|
||||
UploaderGadgetFactory *uploader = pm->getObject<UploaderGadgetFactory>();
|
||||
Q_ASSERT(uploader);
|
||||
|
@ -619,6 +619,7 @@ bool UploaderGadgetWidget::autoUpdateCapable()
|
||||
bool UploaderGadgetWidget::autoUpdate(bool erase)
|
||||
{
|
||||
ResultEventLoop eventLoop;
|
||||
|
||||
connect(this, SIGNAL(bootloaderSuccess()), &eventLoop, SLOT(success()));
|
||||
connect(this, SIGNAL(bootloaderFailed()), &eventLoop, SLOT(fail()));
|
||||
|
||||
@ -1053,17 +1054,20 @@ int UploaderGadgetWidget::cannotResetMessageBox()
|
||||
}
|
||||
|
||||
|
||||
int ResultEventLoop::run(int millisTimout) {
|
||||
int ResultEventLoop::run(int millisTimout)
|
||||
{
|
||||
m_timer.singleShot(millisTimout, this, SLOT(fail()));
|
||||
return exec();
|
||||
}
|
||||
|
||||
void ResultEventLoop::success() {
|
||||
void ResultEventLoop::success()
|
||||
{
|
||||
m_timer.stop();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void ResultEventLoop::fail() {
|
||||
void ResultEventLoop::fail()
|
||||
{
|
||||
m_timer.stop();
|
||||
exit(-1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user