MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / trash

Function trash

launcher/FileSystem.cpp:686–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686bool trash(QString path, QString* pathInTrash)
687{
688 // FIXME: Figure out trash in Flatpak. Qt seemingly doesn't use the Trash portal
689 if (DesktopServices::isFlatpak())
690 return false;
691#if defined Q_OS_WIN32
692 if (IsWindowsServer())
693 return false;
694#endif
695 return QFile::moveToTrash(path, pathInTrash);
696}
697
698QString PathCombine(const QString& path1, const QString& path2)
699{

Callers 8

trashInstanceMethod · 0.85
on_btnDelete_clickedMethod · 0.85
on_btnClean_clickedMethod · 0.85
trashIconMethod · 0.85
destroyMethod · 0.85
deleteSkinMethod · 0.85
destroyMethod · 0.85

Calls 1

isFlatpakFunction · 0.85

Tested by

no test coverage detected