2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Video playing in MediaView seek fixed, fullscreen mode improved.

Shortcut commands now return bool, so you know if it was executed.
This commit is contained in:
John Preston
2016-07-14 14:20:46 +03:00
parent cb0c99acc8
commit 505e5a69a6
15 changed files with 367 additions and 170 deletions

View File

@@ -515,16 +515,19 @@ void MainWidget::notify_handlePendingHistoryUpdate() {
_history->notify_handlePendingHistoryUpdate();
}
void MainWidget::cmd_search() {
_history->cmd_search();
bool MainWidget::cmd_search() {
if (Ui::isLayerShown() || Ui::isMediaViewShown()) return false;
return _history->cmd_search();
}
void MainWidget::cmd_next_chat() {
_history->cmd_next_chat();
bool MainWidget::cmd_next_chat() {
if (Ui::isLayerShown() || Ui::isMediaViewShown()) return false;
return _history->cmd_next_chat();
}
void MainWidget::cmd_previous_chat() {
_history->cmd_previous_chat();
bool MainWidget::cmd_previous_chat() {
if (Ui::isLayerShown() || Ui::isMediaViewShown()) return false;
return _history->cmd_previous_chat();
}
void MainWidget::noHider(HistoryHider *destroyed) {