diff --git a/src/modules/launcher/launcher.cpp b/src/modules/launcher/launcher.cpp index bebde9e0..095adbda 100644 --- a/src/modules/launcher/launcher.cpp +++ b/src/modules/launcher/launcher.cpp @@ -39,10 +39,13 @@ #include #include +#include + #include #include #include +DCORE_USE_NAMESPACE DCORE_USE_NAMESPACE #define SETTING LauncherSettings::instance() @@ -68,6 +71,7 @@ Launcher::Launcher(QObject *parent) loadNameMap(); initItems(); + initData(); initConnection(); } @@ -76,6 +80,12 @@ Launcher::~Launcher() QDBusConnection::sessionBus().unregisterObject(dbusPath); } +void Launcher::initData() +{ + if (DSysInfo::isCommunityEdition()) + setFullscreen(true); +} + void Launcher::setSyncConfig(QByteArray ba) { if (!SETTING) diff --git a/src/modules/launcher/launcher.h b/src/modules/launcher/launcher.h index 2b6c21ef..d9d42148 100644 --- a/src/modules/launcher/launcher.h +++ b/src/modules/launcher/launcher.h @@ -83,6 +83,8 @@ class Launcher : public SynModule, public QDBusContext explicit Launcher(QObject *parent); ~Launcher(); + void initData(); + // 设置配置 void setSyncConfig(QByteArray ba); QByteArray getSyncConfig();