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);
|
||||
linkFontOver: font(13px underline);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3173,7 +3173,6 @@ MsgId HistoryWidget::highlightOrigId() const {
|
|||
return _highlightedOriginalMessageId;
|
||||
}
|
||||
|
||||
|
||||
void HistoryWidget::showAnimated(
|
||||
Window::SlideDirection direction,
|
||||
const Window::SectionSlideParams ¶ms) {
|
||||
|
|
|
|||
|
|
@ -101,11 +101,13 @@ rpl::producer<TextWithEntities> UsernameValue(not_null<UserData*> user) {
|
|||
}
|
||||
|
||||
rpl::producer<QString> PlainAboutValue(not_null<PeerData*> peer) {
|
||||
/*if (const auto user = peer->asUser()) {
|
||||
/*
|
||||
if (const auto user = peer->asUser()) {
|
||||
if (!user->isBot()) {
|
||||
return rpl::single(QString());
|
||||
}
|
||||
}*/
|
||||
}
|
||||
*/
|
||||
return Notify::PeerUpdateValue(
|
||||
peer,
|
||||
Notify::PeerUpdate::Flag::AboutChanged
|
||||
|
|
|
|||
|
|
@ -651,8 +651,8 @@ void Instance::loadFromJson(const QString &filename) {
|
|||
const auto pluralValue = keyPlurals.constFind(plural);
|
||||
|
||||
if (!(*pluralValue).isString()) {
|
||||
LOG(("Lang Info: wrong value for key %1 in %2 in file %3, string expected"
|
||||
).arg(plural).arg(key).arg(filename));
|
||||
LOG(("Lang Info: wrong value for key %1 in %2 in file %3, string expected")
|
||||
.arg(plural).arg(key).arg(filename));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -665,8 +665,8 @@ void Instance::loadFromJson(const QString &filename) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
LOG(("Lang Info: wrong value for key %1 in file %2, string or object expected"
|
||||
).arg(key).arg(filename));
|
||||
LOG(("Lang Info: wrong value for key %1 in file %2, string or object expected")
|
||||
.arg(key).arg(filename));
|
||||
}
|
||||
if (--limit <= 0) {
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -896,9 +896,11 @@ rpl::producer<QString> ProfilePhotoPrivacyController::title() {
|
|||
return tr::lng_edit_privacy_profile_photo_title();
|
||||
}
|
||||
|
||||
/*bool ProfilePhotoPrivacyController::hasOption(Option option) {
|
||||
/*
|
||||
bool ProfilePhotoPrivacyController::hasOption(Option option) {
|
||||
return (option != Option::Nobody);
|
||||
}*/
|
||||
}
|
||||
*/
|
||||
|
||||
rpl::producer<QString> ProfilePhotoPrivacyController::optionsTitleKey() {
|
||||
return tr::lng_edit_privacy_profile_photo_header();
|
||||
|
|
|
|||
|
|
@ -678,7 +678,6 @@ void FolderFiller::addTogglesForArchive() {
|
|||
|
||||
} // namespace
|
||||
|
||||
|
||||
void PeerMenuHidePinnedMessage(not_null<PeerData*> peer) {
|
||||
auto hidden = HistoryWidget::switchPinnedHidden(peer, true);
|
||||
if (hidden) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue