mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix(IconList): make sure we always set new path
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
5a6f94fe79
commit
6cbedbe184
1 changed files with 2 additions and 3 deletions
|
|
@ -147,8 +147,7 @@ void IconList::directoryChanged(const QString& path)
|
|||
{
|
||||
QDir newDir(path);
|
||||
if (m_dir.absolutePath() != newDir.absolutePath()) {
|
||||
if (!path.startsWith(m_dir.absolutePath()))
|
||||
m_dir.setPath(path);
|
||||
m_dir.setPath(path);
|
||||
m_dir.refresh();
|
||||
if (m_isWatching)
|
||||
stopWatching();
|
||||
|
|
@ -488,4 +487,4 @@ QString IconList::iconDirectory(const QString& key) const
|
|||
}
|
||||
}
|
||||
return getDirectory();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue