2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Export panel minimizes to a top bar, like a Call.

This commit is contained in:
John Preston
2018-06-20 01:02:36 +01:00
parent eaf3ea9289
commit 329db0d8e9
22 changed files with 437 additions and 127 deletions

View File

@@ -16,8 +16,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_session.h"
#include "data/data_feed.h"
#include "passport/passport_form_controller.h"
#include "export/export_controller.h"
#include "export/view/export_view_panel_controller.h"
#include "boxes/calendar_box.h"
#include "mainwidget.h"
#include "mainwindow.h"
@@ -418,24 +416,6 @@ void Controller::clearPassportForm() {
_passportForm = nullptr;
}
void Controller::startDataExport() {
using namespace Export;
_export = std::make_unique<Export::ControllerWrap>();
_exportPanel = std::make_unique<Export::View::PanelController>(
_export.get());
_exportPanel->closed(
) | rpl::start_with_next([=] {
clearDataExport();
}, _export->lifetime());
}
void Controller::clearDataExport() {
_exportPanel = nullptr;
_export = nullptr;
}
void Controller::updateColumnLayout() {
App::main()->updateColumnLayout();
}