mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Exporter: make it modeless
This commit is contained in:
parent
fa7dd8c541
commit
c9be7a7a7f
@ -53,6 +53,8 @@ ExportDialog::ExportDialog(Notebook *p_notebook,
|
|||||||
|
|
||||||
restoreFields(m_option);
|
restoreFields(m_option);
|
||||||
|
|
||||||
|
setWindowFlags(windowFlags() | Qt::WindowMinimizeButtonHint);
|
||||||
|
|
||||||
connect(this, &QDialog::finished,
|
connect(this, &QDialog::finished,
|
||||||
this, [this]() {
|
this, [this]() {
|
||||||
saveFields(m_option);
|
saveFields(m_option);
|
||||||
|
@ -857,12 +857,17 @@ void MainWindow::exportNotes()
|
|||||||
if (noteNode && !noteNode->hasContent()) {
|
if (noteNode && !noteNode->hasContent()) {
|
||||||
noteNode = nullptr;
|
noteNode = nullptr;
|
||||||
}
|
}
|
||||||
ExportDialog dialog(currentNotebook,
|
auto dialog = new ExportDialog(currentNotebook,
|
||||||
folderNode,
|
folderNode,
|
||||||
noteNode,
|
noteNode,
|
||||||
viewWindow ? viewWindow->getBuffer() : nullptr,
|
viewWindow ? viewWindow->getBuffer() : nullptr,
|
||||||
this);
|
nullptr);
|
||||||
dialog.exec();
|
connect(dialog, &QDialog::finished,
|
||||||
|
this, [this, dialog]() {
|
||||||
|
dialog->deleteLater();
|
||||||
|
});
|
||||||
|
// Let it be able to run at background.
|
||||||
|
dialog->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::showTips(const QString &p_message, int p_timeoutMilliseconds)
|
void MainWindow::showTips(const QString &p_message, int p_timeoutMilliseconds)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user