settings_common_session.cpp 623 B

12345678910111213141516171819202122
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #include "settings/settings_common_session.h"
  8. #include "settings/cloud_password/settings_cloud_password_email_confirm.h"
  9. #include "settings/settings_chat.h"
  10. #include "settings/settings_main.h"
  11. namespace Settings {
  12. bool HasMenu(Type type) {
  13. return (type == ::Settings::CloudPasswordEmailConfirmId())
  14. || (type == Main::Id())
  15. || (type == Chat::Id());
  16. }
  17. } // namespace Settings