feat: 社区差异化需求实现
社区版本默认全屏模式 Log: Influence: 社区版桌面环境下-启动器第一次启动时,默认全屏模式 Task: https://pms.uniontech.com/task-view-225013.html Change-Id: I074faf54a5ba69827114aae2f8ddde340a85ce89
This commit is contained in:
		@ -39,10 +39,13 @@
 | 
			
		||||
#include <QDBusConnectionInterface>
 | 
			
		||||
#include <QEventLoop>
 | 
			
		||||
 | 
			
		||||
#include <DSysInfo>
 | 
			
		||||
 | 
			
		||||
#include <regex>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <thread>
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
@ -83,6 +83,8 @@ public:
 | 
			
		||||
    explicit Launcher(QObject *parent);
 | 
			
		||||
    ~Launcher();
 | 
			
		||||
 | 
			
		||||
    void initData();
 | 
			
		||||
 | 
			
		||||
    // 设置配置
 | 
			
		||||
    void setSyncConfig(QByteArray ba);
 | 
			
		||||
    QByteArray getSyncConfig();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user