mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added ability to provide style of schedule box to share box.
This commit is contained in:
parent
dd6501ef8f
commit
f721f5edcf
2 changed files with 8 additions and 1 deletions
|
@ -602,7 +602,12 @@ void ShareBox::submitSilent() {
|
||||||
void ShareBox::submitScheduled() {
|
void ShareBox::submitScheduled() {
|
||||||
const auto callback = [=](Api::SendOptions options) { submit(options); };
|
const auto callback = [=](Api::SendOptions options) { submit(options); };
|
||||||
Ui::show(
|
Ui::show(
|
||||||
HistoryView::PrepareScheduleBox(this, sendMenuType(), callback),
|
HistoryView::PrepareScheduleBox(
|
||||||
|
this,
|
||||||
|
sendMenuType(),
|
||||||
|
callback,
|
||||||
|
HistoryView::DefaultScheduleTime(),
|
||||||
|
_descriptor.scheduleBoxStyle),
|
||||||
Ui::LayerOption::KeepOther);
|
Ui::LayerOption::KeepOther);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "boxes/abstract_box.h"
|
#include "boxes/abstract_box.h"
|
||||||
#include "base/observer.h"
|
#include "base/observer.h"
|
||||||
#include "base/timer.h"
|
#include "base/timer.h"
|
||||||
|
#include "history/view/history_view_schedule_box.h"
|
||||||
#include "ui/chat/forward_options_box.h"
|
#include "ui/chat/forward_options_box.h"
|
||||||
#include "ui/effects/animations.h"
|
#include "ui/effects/animations.h"
|
||||||
#include "ui/effects/round_checkbox.h"
|
#include "ui/effects/round_checkbox.h"
|
||||||
|
@ -92,6 +93,7 @@ public:
|
||||||
bool show = false;
|
bool show = false;
|
||||||
bool hasCaptions = false;
|
bool hasCaptions = false;
|
||||||
} forwardOptions;
|
} forwardOptions;
|
||||||
|
HistoryView::ScheduleBoxStyleArgs scheduleBoxStyle;
|
||||||
};
|
};
|
||||||
ShareBox(QWidget*, Descriptor &&descriptor);
|
ShareBox(QWidget*, Descriptor &&descriptor);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue