mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
disable "window border" setting in the ingame settings UI if fullscreen is enabled
This commit is contained in:
parent
e85df00158
commit
764cd9ca16
@ -240,6 +240,8 @@ namespace MWGui
|
||||
MyGUI::TextBox* diffText;
|
||||
getWidget(diffText, "DifficultyText");
|
||||
diffText->setCaptionWithReplacing("#{sDifficulty} (" + boost::lexical_cast<std::string>(int(Settings::Manager::getInt("difficulty", "Game"))) + ")");
|
||||
|
||||
mWindowBorderButton->setEnabled(!Settings::Manager::getBool("fullscreen", "Video"));
|
||||
}
|
||||
|
||||
void SettingsWindow::onOkButtonClicked(MyGUI::Widget* _sender)
|
||||
@ -355,6 +357,8 @@ namespace MWGui
|
||||
_sender->castType<MyGUI::Button>()->setCaption(off);
|
||||
return;
|
||||
}
|
||||
|
||||
mWindowBorderButton->setEnabled(!newState);
|
||||
}
|
||||
|
||||
if (getSettingType(_sender) == checkButtonType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user