mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
feat: 去掉不用的注释过的代码,去掉任务栏启动时的延时加载插件
去除部分注释的代码,去掉任务栏启动时的延时加载插件 Log: 精简优化代码 Change-Id: Id4b0e1fe3bfcef9a254089a58282200851a19ae5 Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/1402 Reviewed-by: <mailman@uniontech.com> Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com> Reviewed-by: niecheng <niecheng@uniontech.com> Tested-by: <mailman@uniontech.com>
This commit is contained in:
parent
08c543da63
commit
d42e7df630
@ -38,7 +38,6 @@
|
||||
#include "dbus/dbusdockadaptors.h"
|
||||
#include <string>
|
||||
|
||||
//#include <sys/mman.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <execinfo.h>
|
||||
@ -195,9 +194,6 @@ int main(int argc, char *argv[])
|
||||
signal(SIGABRT, sig_crash);
|
||||
signal(SIGFPE, sig_crash);
|
||||
|
||||
// 锁定物理内存,用于国测测试[会显著增加内存占用]
|
||||
// qDebug() << "lock memory result:" << mlockall(MCL_CURRENT | MCL_FUTURE);
|
||||
|
||||
app.setOrganizationName("deepin");
|
||||
app.setApplicationName("dde-dock");
|
||||
app.setApplicationDisplayName("DDE Dock");
|
||||
|
@ -131,14 +131,11 @@ MainWindow::~MainWindow()
|
||||
|
||||
void MainWindow::launch()
|
||||
{
|
||||
setVisible(false);
|
||||
QTimer::singleShot(400, this, [&] {
|
||||
m_launched = true;
|
||||
qApp->processEvents();
|
||||
setVisible(true);
|
||||
m_multiScreenWorker->initShow();
|
||||
m_shadowMaskOptimizeTimer->start();
|
||||
});
|
||||
m_launched = true;
|
||||
qApp->processEvents();
|
||||
setVisible(true);
|
||||
m_multiScreenWorker->initShow();
|
||||
m_shadowMaskOptimizeTimer->start();
|
||||
}
|
||||
|
||||
void MainWindow::showEvent(QShowEvent *e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user