mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Use overlay messages for validation
This commit is contained in:
@@ -75,6 +75,9 @@ namespace BlackGui
|
||||
|
||||
// overlay
|
||||
this->setOverlaySizeFactors(0.8, 0.9);
|
||||
this->setReducedInfo(true);
|
||||
this->setForceSmall(true);
|
||||
this->showKillButton(false);
|
||||
|
||||
// validators
|
||||
CUpperCaseValidator *ucv = new CUpperCaseValidator(this);
|
||||
@@ -433,7 +436,7 @@ namespace BlackGui
|
||||
m = CStatusMessage(this).validationError("No errors, but not connected, cannot send flight plan");
|
||||
}
|
||||
ui->le_LastSent->setText(lastSent);
|
||||
this->showOverlayMessage(m, showOverlayMs);
|
||||
this->showOverlayMessage(m, OverlayMessageMs);
|
||||
m_sentFlightPlan = flightPlan; // last valid FP
|
||||
}
|
||||
else
|
||||
@@ -782,7 +785,7 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
// messages
|
||||
this->showOverlayMessages(msgs, false, showOverlayMs);
|
||||
this->showOverlayMessages(msgs, false, OverlayMessageMs);
|
||||
|
||||
// copy over
|
||||
if (msgs.isSuccess())
|
||||
|
||||
Reference in New Issue
Block a user