[Improvement] "Nobody" option for profile picture privacy
This commit is contained in:
parent
abd6f9b53e
commit
bb83e24dcf
2 changed files with 3 additions and 1 deletions
|
|
@ -1025,9 +1025,11 @@ rpl::producer<QString> ProfilePhotoPrivacyController::title() const {
|
||||||
return tr::lng_edit_privacy_profile_photo_title();
|
return tr::lng_edit_privacy_profile_photo_title();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
bool ProfilePhotoPrivacyController::hasOption(Option option) const {
|
bool ProfilePhotoPrivacyController::hasOption(Option option) const {
|
||||||
return (option != Option::Nobody);
|
return (option != Option::Nobody);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
rpl::producer<QString> ProfilePhotoPrivacyController::optionsTitleKey() const {
|
rpl::producer<QString> ProfilePhotoPrivacyController::optionsTitleKey() const {
|
||||||
return tr::lng_edit_privacy_profile_photo_header();
|
return tr::lng_edit_privacy_profile_photo_header();
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ public:
|
||||||
Key key() const override;
|
Key key() const override;
|
||||||
|
|
||||||
rpl::producer<QString> title() const override;
|
rpl::producer<QString> title() const override;
|
||||||
bool hasOption(Option option) const override;
|
//bool hasOption(Option option) const override;
|
||||||
rpl::producer<QString> optionsTitleKey() const override;
|
rpl::producer<QString> optionsTitleKey() const override;
|
||||||
rpl::producer<QString> exceptionButtonTextKey(
|
rpl::producer<QString> exceptionButtonTextKey(
|
||||||
Exception exception) const override;
|
Exception exception) const override;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue