mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
0.7.19 version with passcode lock option
This commit is contained in:
@@ -41,6 +41,18 @@ inline void cSet##Name(const Type &Name) { \
|
||||
g##Name = Name; \
|
||||
}
|
||||
|
||||
struct mtpDcOption {
|
||||
mtpDcOption(int _id, const string &_host, const string &_ip, int _port) : id(_id), host(_host), ip(_ip), port(_port) {
|
||||
}
|
||||
|
||||
int id;
|
||||
string host;
|
||||
string ip;
|
||||
int port;
|
||||
};
|
||||
typedef QMap<int, mtpDcOption> mtpDcOptions;
|
||||
DeclareSetting(mtpDcOptions, DcOptions);
|
||||
|
||||
DeclareSetting(bool, TestMode);
|
||||
DeclareSetting(QString, LoggedPhoneNumber);
|
||||
DeclareReadSetting(uint32, ConnectionsInSession);
|
||||
@@ -108,6 +120,9 @@ DeclareSetting(DBIScale, ConfigScale);
|
||||
DeclareSetting(bool, CompressPastedImage);
|
||||
DeclareSetting(QString, TimeFormat);
|
||||
|
||||
DeclareSetting(int32, AutoLock);
|
||||
DeclareSetting(bool, HasPasscode);
|
||||
|
||||
inline void cChangeTimeFormat(const QString &newFormat) {
|
||||
if (!newFormat.isEmpty()) cSetTimeFormat(newFormat);
|
||||
}
|
||||
|
Reference in New Issue
Block a user