Bugfix icons
This commit is contained in:
parent
05186e2599
commit
70ca03e810
1 changed files with 1 additions and 1 deletions
|
@ -2958,7 +2958,7 @@ bool GMainWindow::SaveShortcutLink(const std::filesystem::path& shortcut_path, c
|
|||
if (!wcomment.empty())
|
||||
pShellLink->SetDescription(wcomment.c_str());
|
||||
|
||||
if (!std::filesystem::exists(icon_path) && std::filesystem::is_regular_file(icon_path))
|
||||
if (std::filesystem::exists(icon_path) && std::filesystem::is_regular_file(icon_path))
|
||||
pShellLink->SetIconLocation(Common::FS::ToWString(icon_path.u8string()).c_str(), 0);
|
||||
|
||||
hres = pShellLink->QueryInterface(IID_IPersistFile, (void**)&pPersistFile);
|
||||
|
|
Loading…
Add table
Reference in a new issue