Allowing Swap screens hotkey to swap between displaying only top screen and only bottom screen. (#1283)

This commit is contained in:
ZackWeinstein 2022-02-25 09:58:31 -05:00 committed by GitHub
parent bb67e186df
commit e3ad78e84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -2777,6 +2777,22 @@ void MainWindow::onChangeScreenSwap(bool checked)
{
Config::ScreenSwap = checked?1:0;
// Swap between top and bottom screen when displaying one screen.
if (Config::ScreenSizing == 4)
{
// Bottom Screen.
Config::ScreenSizing = 5;
actScreenSizing[4]->setChecked(false);
actScreenSizing[Config::ScreenSizing]->setChecked(true);
}
else if (Config::ScreenSizing == 5)
{
// Top Screen.
Config::ScreenSizing = 4;
actScreenSizing[5]->setChecked(false);
actScreenSizing[Config::ScreenSizing]->setChecked(true);
}
emit screenLayoutChange();
}