Skip to content

Commit

Permalink
feat: 社区差异化需求实现
Browse files Browse the repository at this point in the history
社区版本默认全屏模式

Log:
Influence: 社区版桌面环境下-启动器第一次启动时,默认全屏模式
Task: https://pms.uniontech.com/task-view-225013.html
Change-Id: I074faf54a5ba69827114aae2f8ddde340a85ce89
  • Loading branch information
songwentao committed Dec 13, 2022
1 parent dda9535 commit f1ac5f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/launcher/launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -68,6 +71,7 @@ Launcher::Launcher(QObject *parent)
loadNameMap();
initItems();

initData();
initConnection();
}

Expand All @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/modules/launcher/launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class Launcher : public SynModule, public QDBusContext
explicit Launcher(QObject *parent);
~Launcher();

void initData();

// 设置配置
void setSyncConfig(QByteArray ba);
QByteArray getSyncConfig();
Expand Down

0 comments on commit f1ac5f9

Please sign in to comment.