1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-10-04 17:41:42 +02:00

Added support for hiding the menu bar and showing the compact menu.

Except on Mac, where things should behave exactly as before.
This commit is contained in:
Teo Mrnjavac
2012-08-04 14:50:19 +02:00
parent 9d913a49aa
commit 8ffe9019e3
6 changed files with 158 additions and 11 deletions

View File

@@ -901,6 +901,24 @@ TomahawkSettings::setVerboseNotifications( bool notifications )
setValue( "ui/notifications/verbose", notifications );
}
bool
TomahawkSettings::menuBarVisible() const
{
#ifndef Q_OS_MAC
return value( "ui/mainwindow/menuBarVisible", true ).toBool();
#else
return true;
#endif
}
void
TomahawkSettings::setMenuBarVisible( bool visible )
{
#ifndef Q_OS_MAC
setValue( "ui/mainwindow/menuBarVisible", visible );
#endif
}
bool
TomahawkSettings::showOfflineSources() const