Set some layers crash annotations.
This commit is contained in:
parent
1ceaa0bbcf
commit
14cc3ff52b
1 changed files with 7 additions and 0 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
#include "ui/painter.h"
|
#include "ui/painter.h"
|
||||||
#include "ui/ui_utility.h"
|
#include "ui/ui_utility.h"
|
||||||
#include "ui/round_rect.h"
|
#include "ui/round_rect.h"
|
||||||
|
#include "base/integration.h"
|
||||||
#include "styles/style_layers.h"
|
#include "styles/style_layers.h"
|
||||||
#include "styles/style_widgets.h"
|
#include "styles/style_widgets.h"
|
||||||
#include "styles/palette.h"
|
#include "styles/palette.h"
|
||||||
|
|
@ -678,16 +679,20 @@ void LayerStackWidget::prepareForAnimation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LayerStackWidget::animationDone() {
|
void LayerStackWidget::animationDone() {
|
||||||
|
auto &integration = base::Integration::Instance();
|
||||||
bool hidden = true;
|
bool hidden = true;
|
||||||
if (_mainMenu) {
|
if (_mainMenu) {
|
||||||
|
integration.setCrashAnnotation("ShowingWidget", u"MainMenu"_q);
|
||||||
_mainMenu->show();
|
_mainMenu->show();
|
||||||
hidden = false;
|
hidden = false;
|
||||||
}
|
}
|
||||||
if (_specialLayer) {
|
if (_specialLayer) {
|
||||||
|
integration.setCrashAnnotation("ShowingWidget", u"SpecialLayer"_q);
|
||||||
_specialLayer->show();
|
_specialLayer->show();
|
||||||
hidden = false;
|
hidden = false;
|
||||||
}
|
}
|
||||||
if (auto layer = currentLayer()) {
|
if (auto layer = currentLayer()) {
|
||||||
|
integration.setCrashAnnotation("ShowingWidget", u"Box"_q);
|
||||||
layer->show();
|
layer->show();
|
||||||
hidden = false;
|
hidden = false;
|
||||||
}
|
}
|
||||||
|
|
@ -695,7 +700,9 @@ void LayerStackWidget::animationDone() {
|
||||||
if (hidden) {
|
if (hidden) {
|
||||||
_hideFinishStream.fire({});
|
_hideFinishStream.fire({});
|
||||||
} else {
|
} else {
|
||||||
|
integration.setCrashAnnotation("ShowingWidget", u"Finished"_q);
|
||||||
showFinished();
|
showFinished();
|
||||||
|
integration.setCrashAnnotation("ShowingWidget", QString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue