修复了一些小错误.

This commit is contained in:
iaom 2022-04-07 15:45:40 +08:00
parent 777b5c06ef
commit b7e8221922
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ Exec=/usr/bin/ukui-search -s
Type=Application
Icon=kylin-search
X-UKUI-AutoRestart=true
NoDisplay=true
OnlyShowIn=UKUI
#NoDisplay=true
#OnlyShowIn=UKUI
X-UKUI-Autostart-Phase=Application
Terminal=false

View File

@ -72,7 +72,7 @@ MainWindow::MainWindow(QWidget *parent) :
initTimer();
m_sys_tray_icon = new QSystemTrayIcon(this);
m_sys_tray_icon->setIcon(QIcon::fromTheme("system-search-symbolic"));
m_sys_tray_icon->setIcon(QIcon::fromTheme("system-search-symbolic", QIcon(":/res/icons/edit-find-symbolic.svg")));
m_sys_tray_icon->setToolTip(tr("Global Search"));
m_sys_tray_icon->show();
installEventFilter(this);

View File

@ -401,7 +401,7 @@ void InotifyWatch::eventProcess(const char *buffer, ssize_t len)
if(event->mask & IN_ISDIR) {
f.setIsDir();
}
PendingFileQueue::getInstance(this)->enqueue(f);
PendingFileQueue::getInstance()->enqueue(f);
if(event->mask & IN_ISDIR) {
if(!QFileInfo(path).isSymLink()){