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:
@@ -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
|
||||
|
Reference in New Issue
Block a user