mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 修复任务栏出现多个的问题
任务栏使用了DApplication::setSingleInstance函数来限制单实例运行,但此函数有问题, dtkgui库提供了setSingelInstanceInterval来设置等待间隔,-1表示永远等待, 注意:依赖dtkgui>5.2.0.1 Log: 修复桌面出现多个任务栏的问题 Bug: https://pms.uniontech.com/zentao/bug-view-33650.html Bug: https://pms.uniontech.com/zentao/bug-view-32857.html
This commit is contained in:
parent
c7130b5fde
commit
bab66017f5
@ -100,6 +100,7 @@ int main(int argc, char *argv[])
|
||||
parser.addOption(disablePlugOption);
|
||||
parser.process(app);
|
||||
|
||||
DGuiApplicationHelper::setSingelInstanceInterval(-1);
|
||||
if (!app.setSingleInstance(QString("dde-dock_%1").arg(getuid()))) {
|
||||
qDebug() << "set single instance failed!";
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user