mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Hide "Close friends" in privacy edit by default.
This commit is contained in:
parent
ae94cd2d42
commit
2bc7f465c2
2 changed files with 5 additions and 3 deletions
|
@ -112,6 +112,10 @@ std::unique_ptr<PrivacyExceptionsBoxController::Row> PrivacyExceptionsBoxControl
|
|||
|
||||
} // namespace
|
||||
|
||||
bool EditPrivacyController::hasOption(Option option) const {
|
||||
return (option != Option::CloseFriends);
|
||||
}
|
||||
|
||||
QString EditPrivacyController::optionLabel(Option option) const {
|
||||
switch (option) {
|
||||
case Option::Everyone: return tr::lng_edit_privacy_everyone(tr::now);
|
||||
|
|
|
@ -41,9 +41,7 @@ public:
|
|||
[[nodiscard]] virtual Key key() const = 0;
|
||||
|
||||
[[nodiscard]] virtual rpl::producer<QString> title() const = 0;
|
||||
[[nodiscard]] virtual bool hasOption(Option option) const {
|
||||
return true;
|
||||
}
|
||||
[[nodiscard]] virtual bool hasOption(Option option) const;
|
||||
[[nodiscard]] virtual rpl::producer<QString> optionsTitleKey() const = 0;
|
||||
[[nodiscard]] virtual QString optionLabel(Option option) const;
|
||||
[[nodiscard]] virtual rpl::producer<TextWithEntities> warning() const {
|
||||
|
|
Loading…
Add table
Reference in a new issue