mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
Runtime check for lion instead of compile-time
This commit is contained in:
@@ -234,7 +234,12 @@ void Tomahawk::checkForUpdates() {
|
|||||||
|
|
||||||
void Tomahawk::enableFullscreen()
|
void Tomahawk::enableFullscreen()
|
||||||
{
|
{
|
||||||
#ifdef LION
|
// We don't support anything below leopard, so if it's not [snow] leopard it must be lion
|
||||||
|
// Can't check for lion as Qt 4.7 doesn't have the enum val, not checking for Unknown as it will be lion
|
||||||
|
// on 4.8
|
||||||
|
if ( QSysInfo::MacintoshVersion != QSysInfo::MV_SNOWLEOPARD &&
|
||||||
|
QSysInfo::MacintoshVersion != QSysInfo::MV_LEOPARD )
|
||||||
|
{
|
||||||
qDebug() << "Enabling Lion Full-screeen";
|
qDebug() << "Enabling Lion Full-screeen";
|
||||||
// Can't include tomahawkapp.h in a .mm file, pulls in infosystem.h which uses
|
// Can't include tomahawkapp.h in a .mm file, pulls in infosystem.h which uses
|
||||||
// the objc keyword 'id'
|
// the objc keyword 'id'
|
||||||
@@ -247,6 +252,5 @@ void Tomahawk::enableFullscreen()
|
|||||||
[nswindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
[nswindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user