2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

Start data export in lib_export.

This commit is contained in:
John Preston
2018-06-02 17:29:21 +03:00
parent c2fa149ffd
commit c587c011d2
52 changed files with 1994 additions and 320 deletions

View File

@@ -16,6 +16,8 @@ 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"
@@ -416,6 +418,24 @@ 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();
}