mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-12 21:37:59 -05: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