mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 08:47:52 +00:00
Allow postponed highlight request.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user