mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 22:59:47 -06:00
Qt: Implement "Keep Window on top"
This commit is contained in:
@ -130,6 +130,20 @@ bool Settings::GetHideCursor() const
|
||||
return SConfig::GetInstance().bHideCursor;
|
||||
}
|
||||
|
||||
void Settings::SetKeepWindowOnTop(bool top)
|
||||
{
|
||||
if (IsKeepWindowOnTopEnabled() == top)
|
||||
return;
|
||||
|
||||
SConfig::GetInstance().bKeepWindowOnTop = top;
|
||||
emit KeepWindowOnTopChanged(top);
|
||||
}
|
||||
|
||||
bool Settings::IsKeepWindowOnTopEnabled() const
|
||||
{
|
||||
return SConfig::GetInstance().bKeepWindowOnTop;
|
||||
}
|
||||
|
||||
int Settings::GetVolume() const
|
||||
{
|
||||
return SConfig::GetInstance().m_Volume;
|
||||
|
Reference in New Issue
Block a user