Fix for macos

This commit is contained in:
defnax 2024-02-28 19:47:01 +01:00
parent eccfc7ba71
commit 790c169c02
3 changed files with 12 additions and 3 deletions

View File

@ -705,7 +705,7 @@ feenableexcept(FE_INVALID | FE_DIVBYZERO);
* only on the first run - as the user might want to change it ;)
*/
QString osx_style("cleanlooks");
Rshare::setStyle(osx_style);
RsApplication::setStyle(osx_style);
Settings->setInterfaceStyle(osx_style);
#endif

View File

@ -99,6 +99,12 @@ QStringList RsApplication::_files; /**< List of files passed by argume
bool RsApplication::useConfigDir;
QString RsApplication::configDir;
#endif
#ifdef __APPLE__
QStringList RsApplication::_links; /**< List of links passed by arguments. */
QStringList RsApplication::_files; /**< List of files passed by arguments. */
#endif
Log RsApplication::log_output; /**< Logs debugging messages to file or stdout. */
RsGUIConfigOptions RsApplication::options;
QDateTime RsApplication::mStartupTime;

View File

@ -138,7 +138,7 @@ public:
static void setOpMode(const QString& op ) { options.opModeStr = op.toStdString(); }
static QString opmode() { return QString::fromStdString(options.opModeStr); }
#ifdef TO_REMOVE
#ifdef __APPLE__
/** Returns links passed by arguments. */
static QStringList* links() { return &_links; }
/** Returns files passed by arguments. */
@ -209,7 +209,10 @@ private:
static bool argNeedsValue(const QString &argName);
#endif
#ifdef __APPLE__
static QStringList _links; /**< List of links passed by arguments. */
static QStringList _files; /**< List of files passed by arguments. */
#endif
static QDateTime mStartupTime; // startup time
bool mBlink;
static QLocalServer* localServer;