mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Fix reopening of recent actions section
This commit is contained in:
@@ -61,6 +61,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "history/history.h"
|
||||
#include "history/history_widget.h"
|
||||
#include "history/history_message.h"
|
||||
#include "history/admin_log/history_admin_log_section.h"
|
||||
#include "history/view/media/history_view_media.h"
|
||||
#include "history/view/history_view_service_message.h"
|
||||
#include "history/view/history_view_element.h"
|
||||
@@ -1941,6 +1942,11 @@ bool MainWidget::preventsCloseSection(
|
||||
: preventsCloseSection(std::move(callback));
|
||||
}
|
||||
|
||||
bool MainWidget::areRecentActionsOpened() {
|
||||
return _mainSection
|
||||
&& static_cast<AdminLog::Widget*>(_mainSection.data());
|
||||
}
|
||||
|
||||
void MainWidget::showBackFromStack(
|
||||
const SectionShow ¶ms) {
|
||||
|
||||
|
Reference in New Issue
Block a user