mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Hide "Close friends" in privacy edit by default.
This commit is contained in:
@@ -112,6 +112,10 @@ std::unique_ptr<PrivacyExceptionsBoxController::Row> PrivacyExceptionsBoxControl
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
bool EditPrivacyController::hasOption(Option option) const {
|
||||||
|
return (option != Option::CloseFriends);
|
||||||
|
}
|
||||||
|
|
||||||
QString EditPrivacyController::optionLabel(Option option) const {
|
QString EditPrivacyController::optionLabel(Option option) const {
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case Option::Everyone: return tr::lng_edit_privacy_everyone(tr::now);
|
case Option::Everyone: return tr::lng_edit_privacy_everyone(tr::now);
|
||||||
|
@@ -41,9 +41,7 @@ public:
|
|||||||
[[nodiscard]] virtual Key key() const = 0;
|
[[nodiscard]] virtual Key key() const = 0;
|
||||||
|
|
||||||
[[nodiscard]] virtual rpl::producer<QString> title() const = 0;
|
[[nodiscard]] virtual rpl::producer<QString> title() const = 0;
|
||||||
[[nodiscard]] virtual bool hasOption(Option option) const {
|
[[nodiscard]] virtual bool hasOption(Option option) const;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
[[nodiscard]] virtual rpl::producer<QString> optionsTitleKey() const = 0;
|
[[nodiscard]] virtual rpl::producer<QString> optionsTitleKey() const = 0;
|
||||||
[[nodiscard]] virtual QString optionLabel(Option option) const;
|
[[nodiscard]] virtual QString optionLabel(Option option) const;
|
||||||
[[nodiscard]] virtual rpl::producer<TextWithEntities> warning() const {
|
[[nodiscard]] virtual rpl::producer<TextWithEntities> warning() const {
|
||||||
|
Reference in New Issue
Block a user