feat: 社区差异化需求实现
社区版本默认全屏模式 Log: Influence: 社区版桌面环境下-启动器第一次启动时,默认全屏模式 Task: https://pms.uniontech.com/task-view-225013.html Change-Id: I074faf54a5ba69827114aae2f8ddde340a85ce89
This commit is contained in:
parent
dda953582b
commit
f1ac5f9f00
@ -39,10 +39,13 @@
|
|||||||
#include <QDBusConnectionInterface>
|
#include <QDBusConnectionInterface>
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
|
|
||||||
|
#include <DSysInfo>
|
||||||
|
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
DCORE_USE_NAMESPACE
|
||||||
DCORE_USE_NAMESPACE
|
DCORE_USE_NAMESPACE
|
||||||
|
|
||||||
#define SETTING LauncherSettings::instance()
|
#define SETTING LauncherSettings::instance()
|
||||||
@ -68,6 +71,7 @@ Launcher::Launcher(QObject *parent)
|
|||||||
loadNameMap();
|
loadNameMap();
|
||||||
initItems();
|
initItems();
|
||||||
|
|
||||||
|
initData();
|
||||||
initConnection();
|
initConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,6 +80,12 @@ Launcher::~Launcher()
|
|||||||
QDBusConnection::sessionBus().unregisterObject(dbusPath);
|
QDBusConnection::sessionBus().unregisterObject(dbusPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Launcher::initData()
|
||||||
|
{
|
||||||
|
if (DSysInfo::isCommunityEdition())
|
||||||
|
setFullscreen(true);
|
||||||
|
}
|
||||||
|
|
||||||
void Launcher::setSyncConfig(QByteArray ba)
|
void Launcher::setSyncConfig(QByteArray ba)
|
||||||
{
|
{
|
||||||
if (!SETTING)
|
if (!SETTING)
|
||||||
|
@ -83,6 +83,8 @@ public:
|
|||||||
explicit Launcher(QObject *parent);
|
explicit Launcher(QObject *parent);
|
||||||
~Launcher();
|
~Launcher();
|
||||||
|
|
||||||
|
void initData();
|
||||||
|
|
||||||
// 设置配置
|
// 设置配置
|
||||||
void setSyncConfig(QByteArray ba);
|
void setSyncConfig(QByteArray ba);
|
||||||
QByteArray getSyncConfig();
|
QByteArray getSyncConfig();
|
||||||
|
Loading…
Reference in New Issue
Block a user