Support ctrl+m/ctrl+w in voice chat panel.

This commit is contained in:
John Preston
2020-12-22 20:09:32 +04:00
parent c80da25450
commit ae6decf70b
7 changed files with 50 additions and 6 deletions
@@ -316,6 +316,7 @@ GroupPanel::GroupPanel(not_null<GroupCall*> call)
, _hangup(widget(), st::groupCallHangup) {
_layerBg->setStyleOverrides(&st::groupCallBox, &st::groupCallLayerBox);
_settings->setColorOverrides(_mute->colorOverrides());
_layerBg->setHideByBackgroundClick(true);
SubscribeToMigration(
_peer,
@@ -337,6 +338,14 @@ bool GroupPanel::isActive() const {
&& !(_window->windowState() & Qt::WindowMinimized);
}
void GroupPanel::minimize() {
_window->setWindowState(_window->windowState() | Qt::WindowMinimized);
}
void GroupPanel::close() {
_window->close();
}
void GroupPanel::showAndActivate() {
if (_window->isHidden()) {
_window->show();