Allow postponed highlight request.

This commit is contained in:
John Preston
2026-01-06 14:20:58 +04:00
parent 1b3e275cf2
commit f447423e2e
4 changed files with 38 additions and 0 deletions
@@ -615,6 +615,22 @@ std::shared_ptr<Ui::Show> Controller::uiShow() {
return std::make_shared<Show>(this);
}
void Controller::setHighlightControlId(const QString &id) {
_highlightControlId = id;
}
QString Controller::highlightControlId() const {
return _highlightControlId;
}
bool Controller::takeHighlightControlId(const QString &id) {
if (_highlightControlId == id) {
_highlightControlId = QString();
return true;
}
return false;
}
rpl::lifetime &Controller::lifetime() {
return _lifetime;
}