mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
GCS-Update the path to the stylesheets on Mac to.
This commit is contained in:
parent
e9a355077f
commit
40da558131
@ -309,9 +309,14 @@ void MainWindow::extensionsInitialized()
|
||||
void MainWindow::loadStyleSheet(QString name) {
|
||||
/* Let's use QFile and point to a resource... */
|
||||
QDir directory(QCoreApplication::applicationDirPath());
|
||||
#ifdef Q_OS_MAC
|
||||
directory.cdUp();
|
||||
directory.cd("Resources");
|
||||
#else
|
||||
directory.cdUp();
|
||||
directory.cd("share");
|
||||
directory.cd("openpilotgcs");
|
||||
#endif
|
||||
directory.cd("stylesheets");
|
||||
#ifdef Q_OS_MAC
|
||||
QFile data(directory.absolutePath()+QDir::separator()+name+"_macos.qss");
|
||||
|
Loading…
x
Reference in New Issue
Block a user