mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Launcher Tools Page for utilities which may be helpful
* merged about/news * tools page
This commit is contained in:
committed by
Mat Sutcliffe
parent
70f9420da5
commit
7c2a3e4142
@@ -678,11 +678,8 @@ namespace BlackGui
|
||||
a = menu.addAction(CIcons::disk16(), "Log directory");
|
||||
c = connect(a, &QAction::triggered, this, [ = ]()
|
||||
{
|
||||
const QString path(QDir::toNativeSeparators(CDirectoryUtils::logDirectory()));
|
||||
if (QDir(path).exists())
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||
}
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
this->openStandardLogDirectory();
|
||||
});
|
||||
Q_ASSERT_X(c, Q_FUNC_INFO, "Connect failed");
|
||||
|
||||
@@ -960,6 +957,13 @@ namespace BlackGui
|
||||
return QDesktopServices::openUrl(QUrl::fromLocalFile(fn));
|
||||
}
|
||||
|
||||
bool CGuiApplication::openStandardLogDirectory()
|
||||
{
|
||||
const QString path(QDir::toNativeSeparators(CDirectoryUtils::logDirectory()));
|
||||
if (!QDir(path).exists()) { return false; }
|
||||
return QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||
}
|
||||
|
||||
bool CGuiApplication::updateFont(const QString &fontFamily, const QString &fontSize, const QString &fontStyle, const QString &fontWeight, const QString &fontColor)
|
||||
{
|
||||
return m_styleSheetUtility.updateFont(fontFamily, fontSize, fontStyle, fontWeight, fontColor);
|
||||
|
||||
Reference in New Issue
Block a user