chore: improve param name
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit e5b608447a
)
This commit is contained in:
parent
f8585602d9
commit
8dd898f895
@ -40,18 +40,18 @@
|
|||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
|
|
||||||
namespace DesktopServices {
|
namespace DesktopServices {
|
||||||
bool openPath(const QFileInfo& path, bool ensureExists)
|
bool openPath(const QFileInfo& path, bool ensureFolderPathExists)
|
||||||
{
|
{
|
||||||
qDebug() << "Opening path" << path;
|
qDebug() << "Opening path" << path;
|
||||||
if (ensureExists) {
|
if (ensureFolderPathExists) {
|
||||||
FS::ensureFolderPathExists(path);
|
FS::ensureFolderPathExists(path);
|
||||||
}
|
}
|
||||||
return openUrl(QUrl::fromLocalFile(QFileInfo(path).absolutePath()));
|
return openUrl(QUrl::fromLocalFile(QFileInfo(path).absolutePath()));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool openPath(const QString& path, bool ensureExists)
|
bool openPath(const QString& path, bool ensureFolderPathExists)
|
||||||
{
|
{
|
||||||
return openPath(QFileInfo(path), ensureExists);
|
return openPath(QFileInfo(path), ensureFolderPathExists);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool run(const QString& application, const QStringList& args, const QString& workingDirectory, qint64* pid)
|
bool run(const QString& application, const QStringList& args, const QString& workingDirectory, qint64* pid)
|
||||||
|
@ -12,15 +12,15 @@ class QFileInfo;
|
|||||||
namespace DesktopServices {
|
namespace DesktopServices {
|
||||||
/**
|
/**
|
||||||
* Open a path in whatever application is applicable.
|
* Open a path in whatever application is applicable.
|
||||||
* @param ensurePathExists Make sure the path exists
|
* @param ensureFolderPathExists Make sure the path exists
|
||||||
*/
|
*/
|
||||||
bool openPath(const QFileInfo& path, bool ensurePathExists = false);
|
bool openPath(const QFileInfo& path, bool ensureFolderPathExists = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open a path in whatever application is applicable.
|
* Open a path in whatever application is applicable.
|
||||||
* @param ensurePathExists Make sure the path exists
|
* @param ensureFolderPathExists Make sure the path exists
|
||||||
*/
|
*/
|
||||||
bool openPath(const QString& path, bool ensurePathExists = false);
|
bool openPath(const QString& path, bool ensureFolderPathExists = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run an application
|
* Run an application
|
||||||
|
Loading…
Reference in New Issue
Block a user