mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
version 0.7.9
This commit is contained in:
@@ -31,15 +31,6 @@ inline void cSetDebug(bool debug) {
|
||||
gDebug = debug;
|
||||
}
|
||||
|
||||
extern bool gTestMode;
|
||||
inline bool cTestMode() {
|
||||
#ifdef _DEBUG
|
||||
return gTestMode;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#define DeclareReadSetting(Type, Name) extern Type g##Name; \
|
||||
inline const Type &c##Name() { \
|
||||
return g##Name; \
|
||||
@@ -50,6 +41,7 @@ inline void cSet##Name(const Type &Name) { \
|
||||
g##Name = Name; \
|
||||
}
|
||||
|
||||
DeclareSetting(bool, TestMode);
|
||||
DeclareSetting(QString, LoggedPhoneNumber);
|
||||
DeclareReadSetting(uint32, ConnectionsInSession);
|
||||
DeclareSetting(bool, AutoStart);
|
||||
|
Reference in New Issue
Block a user