mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Ref T176, clear old messages when publishing
(no idea why I have originally kept them)
This commit is contained in:
@@ -288,6 +288,7 @@ namespace BlackGui
|
||||
|
||||
void CDbStashComponent::ps_publishedModelsResponse(const CAircraftModelList &publishedModels, const CAircraftModelList &skippedModels, const CStatusMessageList &msgs, bool sendingSuccesful, bool directWrite)
|
||||
{
|
||||
Q_UNUSED(skippedModels);
|
||||
ui->tvp_StashAircraftModels->hideLoadIndicator();
|
||||
if (!publishedModels.isEmpty() && sendingSuccesful)
|
||||
{
|
||||
@@ -298,7 +299,7 @@ namespace BlackGui
|
||||
{
|
||||
if (publishedModels.isEmpty())
|
||||
{
|
||||
this->showOverlayMessages(msgs, false, true); // show messages, keep old messages
|
||||
this->showOverlayMessages(msgs, false, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -307,12 +308,9 @@ namespace BlackGui
|
||||
{
|
||||
this->unstashModels(publishedModels.getModelStringList(false));
|
||||
};
|
||||
this->showOverlayMessagesWithConfirmation(msgs, true, confirm.arg(publishedModels.size()), lambda, QMessageBox::Ok);
|
||||
this->showOverlayMessagesWithConfirmation(msgs, false, confirm.arg(publishedModels.size()), lambda, QMessageBox::Ok);
|
||||
}
|
||||
}
|
||||
|
||||
Q_UNUSED(publishedModels);
|
||||
Q_UNUSED(skippedModels);
|
||||
}
|
||||
|
||||
CStatusMessageList CDbStashComponent::validate(CAircraftModelList &validModels, CAircraftModelList &invalidModels) const
|
||||
|
||||
Reference in New Issue
Block a user