Set dynamic box name to crash annotations.

This commit is contained in:
John Preston 2023-09-18 10:00:17 +04:00
parent 94f9bbefd7
commit 725339be33

View file

@ -10,6 +10,7 @@
#include "ui/widgets/buttons.h"
#include "ui/widgets/labels.h"
#include "ui/painter.h"
#include "base/integration.h"
#include "base/timer.h"
#include "styles/style_layers.h"
#include "styles/palette.h"
@ -41,6 +42,10 @@ BoxLayerWidget::BoxLayerWidget(
_content->setParent(this);
_content->setDelegate(this);
base::Integration::Instance().setCrashAnnotation(
"BoxName",
QString::fromUtf8(typeid(*_content).name()));
_additionalTitle.changes(
) | rpl::start_with_next([=] {
updateSize();