mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
ff51bf81f3
commit
fbc284af49
2 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ not_null<int64*> AddSizeLimitSlider(
|
||||||
using namespace Settings;
|
using namespace Settings;
|
||||||
using Pair = base::flat_map<Type, int64>::value_type;
|
using Pair = base::flat_map<Type, int64>::value_type;
|
||||||
|
|
||||||
const auto limits = Ui::CreateChild<rpl::event_stream<int>>(
|
const auto limits = Ui::CreateChild<rpl::event_stream<int64>>(
|
||||||
container.get());
|
container.get());
|
||||||
const auto currentLimit = ranges::max_element(
|
const auto currentLimit = ranges::max_element(
|
||||||
values,
|
values,
|
||||||
|
@ -51,7 +51,7 @@ not_null<int64*> AddSizeLimitSlider(
|
||||||
tr::lng_media_size_limit(),
|
tr::lng_media_size_limit(),
|
||||||
limits->events_starting_with_copy(
|
limits->events_starting_with_copy(
|
||||||
startLimit
|
startLimit
|
||||||
) | rpl::map([](int value) {
|
) | rpl::map([](int64 value) {
|
||||||
return tr::lng_media_size_up_to(
|
return tr::lng_media_size_up_to(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_size,
|
lt_size,
|
||||||
|
@ -67,7 +67,7 @@ not_null<int64*> AddSizeLimitSlider(
|
||||||
Export::View::kSizeValueCount,
|
Export::View::kSizeValueCount,
|
||||||
Export::View::SizeLimitByIndex,
|
Export::View::SizeLimitByIndex,
|
||||||
*result,
|
*result,
|
||||||
[=](int value) {
|
[=](int64 value) {
|
||||||
*result = value;
|
*result = value;
|
||||||
limits->fire_copy(value);
|
limits->fire_copy(value);
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,7 +34,7 @@ namespace Export {
|
||||||
namespace View {
|
namespace View {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr auto kMegabyte = 1024 * 1024;
|
constexpr auto kMegabyte = int64(1024) * 1024;
|
||||||
|
|
||||||
[[nodiscard]] PeerId ReadPeerId(
|
[[nodiscard]] PeerId ReadPeerId(
|
||||||
not_null<Main::Session*> session,
|
not_null<Main::Session*> session,
|
||||||
|
|
Loading…
Add table
Reference in a new issue