Fix indentation & other minor fixes (#5)
This commit is contained in:
parent
f923f63429
commit
371ba03f2c
25 changed files with 66 additions and 65 deletions
|
|
@ -927,4 +927,3 @@ fontsBoxTextStyle: TextStyle(defaultTextStyle) {
|
||||||
linkFont: font(13px);
|
linkFont: font(13px);
|
||||||
linkFontOver: font(13px underline);
|
linkFontOver: font(13px underline);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3173,7 +3173,6 @@ MsgId HistoryWidget::highlightOrigId() const {
|
||||||
return _highlightedOriginalMessageId;
|
return _highlightedOriginalMessageId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void HistoryWidget::showAnimated(
|
void HistoryWidget::showAnimated(
|
||||||
Window::SlideDirection direction,
|
Window::SlideDirection direction,
|
||||||
const Window::SectionSlideParams ¶ms) {
|
const Window::SectionSlideParams ¶ms) {
|
||||||
|
|
|
||||||
|
|
@ -101,11 +101,13 @@ rpl::producer<TextWithEntities> UsernameValue(not_null<UserData*> user) {
|
||||||
}
|
}
|
||||||
|
|
||||||
rpl::producer<QString> PlainAboutValue(not_null<PeerData*> peer) {
|
rpl::producer<QString> PlainAboutValue(not_null<PeerData*> peer) {
|
||||||
/*if (const auto user = peer->asUser()) {
|
/*
|
||||||
|
if (const auto user = peer->asUser()) {
|
||||||
if (!user->isBot()) {
|
if (!user->isBot()) {
|
||||||
return rpl::single(QString());
|
return rpl::single(QString());
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
*/
|
||||||
return Notify::PeerUpdateValue(
|
return Notify::PeerUpdateValue(
|
||||||
peer,
|
peer,
|
||||||
Notify::PeerUpdate::Flag::AboutChanged
|
Notify::PeerUpdate::Flag::AboutChanged
|
||||||
|
|
|
||||||
|
|
@ -651,8 +651,8 @@ void Instance::loadFromJson(const QString &filename) {
|
||||||
const auto pluralValue = keyPlurals.constFind(plural);
|
const auto pluralValue = keyPlurals.constFind(plural);
|
||||||
|
|
||||||
if (!(*pluralValue).isString()) {
|
if (!(*pluralValue).isString()) {
|
||||||
LOG(("Lang Info: wrong value for key %1 in %2 in file %3, string expected"
|
LOG(("Lang Info: wrong value for key %1 in %2 in file %3, string expected")
|
||||||
).arg(plural).arg(key).arg(filename));
|
.arg(plural).arg(key).arg(filename));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -665,8 +665,8 @@ void Instance::loadFromJson(const QString &filename) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG(("Lang Info: wrong value for key %1 in file %2, string or object expected"
|
LOG(("Lang Info: wrong value for key %1 in file %2, string or object expected")
|
||||||
).arg(key).arg(filename));
|
.arg(key).arg(filename));
|
||||||
}
|
}
|
||||||
if (--limit <= 0) {
|
if (--limit <= 0) {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -896,9 +896,11 @@ rpl::producer<QString> ProfilePhotoPrivacyController::title() {
|
||||||
return tr::lng_edit_privacy_profile_photo_title();
|
return tr::lng_edit_privacy_profile_photo_title();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*bool ProfilePhotoPrivacyController::hasOption(Option option) {
|
/*
|
||||||
|
bool ProfilePhotoPrivacyController::hasOption(Option option) {
|
||||||
return (option != Option::Nobody);
|
return (option != Option::Nobody);
|
||||||
}*/
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
rpl::producer<QString> ProfilePhotoPrivacyController::optionsTitleKey() {
|
rpl::producer<QString> ProfilePhotoPrivacyController::optionsTitleKey() {
|
||||||
return tr::lng_edit_privacy_profile_photo_header();
|
return tr::lng_edit_privacy_profile_photo_header();
|
||||||
|
|
|
||||||
|
|
@ -678,7 +678,6 @@ void FolderFiller::addTogglesForArchive() {
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|
||||||
void PeerMenuHidePinnedMessage(not_null<PeerData*> peer) {
|
void PeerMenuHidePinnedMessage(not_null<PeerData*> peer) {
|
||||||
auto hidden = HistoryWidget::switchPinnedHidden(peer, true);
|
auto hidden = HistoryWidget::switchPinnedHidden(peer, true);
|
||||||
if (hidden) {
|
if (hidden) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue