mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
added some improvements suggested by 23rd
This commit is contained in:
parent
89a60ceea8
commit
d63438c351
1 changed files with 2 additions and 2 deletions
|
@ -555,11 +555,11 @@ UserInfoPopup::TimeoutWidget::TimeoutWidget()
|
||||||
addButton(Unban, "unban", getApp()->resources->buttons.unban);
|
addButton(Unban, "unban", getApp()->resources->buttons.unban);
|
||||||
|
|
||||||
const auto timeoutButtons = getSettings()->timeoutButtons.getValue();
|
const auto timeoutButtons = getSettings()->timeoutButtons.getValue();
|
||||||
std::vector<std::pair<QString, int>> t(8); // Timeouts.
|
std::vector<TimeoutButton> t(8); // Timeouts.
|
||||||
auto i = 0;
|
auto i = 0;
|
||||||
std::generate(t.begin(), t.end(), [&] {
|
std::generate(t.begin(), t.end(), [&] {
|
||||||
const auto tButton = timeoutButtons[i];
|
const auto tButton = timeoutButtons[i];
|
||||||
std::pair<QString, int> pair = std::make_pair(
|
const auto pair = std::make_pair(
|
||||||
QString::number(tButton.second) + tButton.first,
|
QString::number(tButton.second) + tButton.first,
|
||||||
calculateTimeoutDuration(tButton.second, tButton.first));
|
calculateTimeoutDuration(tButton.second, tButton.first));
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in a new issue