mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
load plugin after main-window showed
Change-Id: I941b422b10edae9bae4cc53b731a41f9e4f06f60
This commit is contained in:
parent
b5b2f249fd
commit
42f5ea0c17
Notes:
Deepin Code Review
2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: <mr.asianwang@gmail.com> Submitted-by: <mr.asianwang@gmail.com> Submitted-at: Mon, 28 Sep 2015 18:53:10 +0800 Reviewed-on: https://cr.deepin.io/7445 Project: dde/dde-dock Branch: refs/heads/master
@ -17,6 +17,12 @@ DockPluginManager::DockPluginManager(QObject *parent) :
|
||||
// m_watcher = new QFileSystemWatcher(this);
|
||||
// m_watcher->addPaths(m_searchPaths);
|
||||
|
||||
// connect(m_watcher, &QFileSystemWatcher::fileChanged, this, &DockPluginManager::watchedFileChanged);
|
||||
// connect(m_watcher, &QFileSystemWatcher::directoryChanged, this, &DockPluginManager::watchedDirectoryChanged);
|
||||
}
|
||||
|
||||
void DockPluginManager::initAll()
|
||||
{
|
||||
foreach (QString path, m_searchPaths) {
|
||||
QDir pluginsDir(path);
|
||||
|
||||
@ -27,12 +33,6 @@ DockPluginManager::DockPluginManager(QObject *parent) :
|
||||
}
|
||||
}
|
||||
|
||||
// connect(m_watcher, &QFileSystemWatcher::fileChanged, this, &DockPluginManager::watchedFileChanged);
|
||||
// connect(m_watcher, &QFileSystemWatcher::directoryChanged, this, &DockPluginManager::watchedDirectoryChanged);
|
||||
}
|
||||
|
||||
void DockPluginManager::initAll()
|
||||
{
|
||||
foreach (DockPluginProxy * proxy, m_proxies.values()) {
|
||||
proxy->plugin()->init(proxy);
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
MainWidget w;
|
||||
w.show();
|
||||
qWarning() << "The main window has been shown!";
|
||||
w.loadResources();
|
||||
|
||||
RegisterDdeSession();
|
||||
|
Loading…
x
Reference in New Issue
Block a user