forked from blue/squawk
replaced one structure, stored omemo support in Global object
This commit is contained in:
parent
dfe72ca36c
commit
758a9d95f3
5 changed files with 17 additions and 26 deletions
|
@ -20,6 +20,11 @@
|
|||
|
||||
#include "enums.h"
|
||||
#include "ui/models/roster.h"
|
||||
#ifdef WITH_OMEMO
|
||||
constexpr bool OMEMO_SUPPORT = true;
|
||||
#else
|
||||
constexpr bool OMEMO_SUPPORT = false
|
||||
#endif
|
||||
|
||||
Shared::Global* Shared::Global::instance = 0;
|
||||
const std::set<QString> Shared::Global::supportedImagesExts = {"png", "jpg", "webp", "jpeg", "gif", "svg"};
|
||||
|
@ -96,6 +101,7 @@ Shared::Global::Global():
|
|||
}),
|
||||
defaultSystemStyle(QApplication::style()->objectName()),
|
||||
defaultSystemPalette(QApplication::palette()),
|
||||
omemoSupport(OMEMO_SUPPORT),
|
||||
pluginSupport({
|
||||
{"KWallet", false},
|
||||
{"openFileManagerWindowJob", false},
|
||||
|
|
|
@ -99,6 +99,7 @@ namespace Shared {
|
|||
static QString getColorSchemeName(const QString& path);
|
||||
static void setTheme(const QString& path);
|
||||
static void setStyle(const QString& style);
|
||||
const bool omemoSupport;
|
||||
|
||||
template<typename T>
|
||||
static T fromInt(int src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue