mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Hide Nobody option from profile photo privacy.
This commit is contained in:
parent
0b5500fe75
commit
8c6e72b21a
2 changed files with 5 additions and 0 deletions
|
@ -722,6 +722,10 @@ QString ProfilePhotoPrivacyController::title() {
|
||||||
return lang(lng_edit_privacy_profile_photo_title);
|
return lang(lng_edit_privacy_profile_photo_title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ProfilePhotoPrivacyController::hasOption(Option option) {
|
||||||
|
return (option != Option::Nobody);
|
||||||
|
}
|
||||||
|
|
||||||
LangKey ProfilePhotoPrivacyController::optionsTitleKey() {
|
LangKey ProfilePhotoPrivacyController::optionsTitleKey() {
|
||||||
return lng_edit_privacy_profile_photo_header;
|
return lng_edit_privacy_profile_photo_header;
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,6 +159,7 @@ public:
|
||||||
MTPInputPrivacyKey apiKey() override;
|
MTPInputPrivacyKey apiKey() override;
|
||||||
|
|
||||||
QString title() override;
|
QString title() override;
|
||||||
|
bool hasOption(Option option) override;
|
||||||
LangKey optionsTitleKey() override;
|
LangKey optionsTitleKey() override;
|
||||||
LangKey exceptionButtonTextKey(Exception exception) override;
|
LangKey exceptionButtonTextKey(Exception exception) override;
|
||||||
QString exceptionBoxTitle(Exception exception) override;
|
QString exceptionBoxTitle(Exception exception) override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue