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:
@@ -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;
|
||||
|
@@ -21,7 +21,7 @@ class SeparatePanel;
|
||||
namespace Export {
|
||||
namespace View {
|
||||
|
||||
void SuggestStart();
|
||||
QPointer<BoxContent> SuggestStart();
|
||||
void ClearSuggestStart();
|
||||
|
||||
class Panel;
|
||||
|
Reference in New Issue
Block a user