2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Improve suggest export logic.

This commit is contained in:
John Preston
2018-06-28 18:44:07 +01:00
parent d0614efd65
commit e21c354428
4 changed files with 17 additions and 4 deletions

View File

@@ -90,12 +90,14 @@ Environment PrepareEnvironment() {
} // namespace
void SuggestStart() {
QPointer<BoxContent> SuggestStart() {
ClearSuggestStart();
Ui::show(Box<SuggestBox>(), LayerOption::KeepOther);
return Ui::show(Box<SuggestBox>(), LayerOption::KeepOther).data();
}
void ClearSuggestStart() {
Auth().data().clearExportSuggestion();
auto settings = Local::ReadExportSettings();
if (settings.availableAt) {
settings.availableAt = 0;

View File

@@ -21,7 +21,7 @@ class SeparatePanel;
namespace Export {
namespace View {
void SuggestStart();
QPointer<BoxContent> SuggestStart();
void ClearSuggestStart();
class Panel;