mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
480dcd8a7a
- Move Main class definition from header to .cpp file - Export only Type MainId() from header - Update all external references from Main::Id() to MainId() - Remove Builder::MainSection export from namespace - Add missing includes for settings_common_session.h where needed Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
639 B
C++
23 lines
639 B
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#include "settings/settings_common_session.h"
|
|
|
|
#include "settings/cloud_password/settings_cloud_password_email_confirm.h"
|
|
#include "settings/sections/settings_chat.h"
|
|
#include "settings/sections/settings_main.h"
|
|
|
|
namespace Settings {
|
|
|
|
bool HasMenu(Type type) {
|
|
return (type == ::Settings::CloudPasswordEmailConfirmId())
|
|
|| (type == MainId())
|
|
|| (type == Chat::Id());
|
|
}
|
|
|
|
} // namespace Settings
|