fix: 修复V23环境下AM崩溃问题
修复V23环境下AM崩溃问题 Log: Task: https://pms.uniontech.com/task-view-144473.html Influence: AM正常运行 Change-Id: I07ee273d5105a51deb056821be315371312bdc16
This commit is contained in:
@ -23,16 +23,21 @@
|
||||
#include "settings.h"
|
||||
#include "gsetting.h"
|
||||
|
||||
#include <DConfig>
|
||||
#include <QDebug>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonDocument>
|
||||
#include <DConfig>
|
||||
|
||||
DCORE_USE_NAMESPACE
|
||||
|
||||
static DConfig *launchConfig = Settings::ConfigPtr(configLauncher);
|
||||
static DConfig *startConfig = Settings::ConfigPtr(configStartdde);
|
||||
static DConfig *xsettingsConfig = Settings::ConfigPtr(configXsettings);
|
||||
StartManagerSettings::StartManagerSettings(QObject *parent)
|
||||
: QObject (parent)
|
||||
, launchConfig(Settings::ConfigPtr(configLauncher))
|
||||
, startConfig(Settings::ConfigPtr(configStartdde))
|
||||
, xsettingsConfig(Settings::ConfigPtr(configXsettings))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QVector<QString> StartManagerSettings::getUseProxyApps()
|
||||
{
|
||||
@ -101,8 +106,3 @@ QString StartManagerSettings::getDefaultTerminalExecArg()
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
StartManagerSettings::StartManagerSettings(QObject *paret)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -28,10 +28,17 @@
|
||||
#include "common.h"
|
||||
#include "gsetting.h"
|
||||
|
||||
|
||||
#include <QObject>
|
||||
#include <QVector>
|
||||
|
||||
namespace Dtk {
|
||||
namespace Core {
|
||||
class DConfig;
|
||||
}
|
||||
}
|
||||
|
||||
using namespace Dtk::Core;
|
||||
|
||||
class StartManagerSettings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -54,9 +61,13 @@ public:
|
||||
Q_SIGNALS:
|
||||
|
||||
private:
|
||||
StartManagerSettings(QObject *paret = nullptr);
|
||||
StartManagerSettings(QObject *parent = nullptr);
|
||||
StartManagerSettings(const StartManagerSettings &);
|
||||
StartManagerSettings& operator= (const StartManagerSettings &);
|
||||
|
||||
DConfig *launchConfig;
|
||||
DConfig *startConfig;
|
||||
DConfig *xsettingsConfig;
|
||||
};
|
||||
|
||||
#endif // STARTMANAGERSETTINGS_H
|
||||
|
Reference in New Issue
Block a user