mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 07:45:36 +00:00
Fix layout glitch when autosaving
This commit is contained in:
parent
cf07d2ab93
commit
18bba6bcec
1 changed files with 3 additions and 2 deletions
|
@ -118,11 +118,12 @@ namespace MWGui
|
|||
|
||||
void WaitDialog::startWaiting(int hoursToWait)
|
||||
{
|
||||
if(Settings::Manager::getBool("autosave","Saves") && mSleeping) //autosaves when enabled and sleeping
|
||||
MWBase::Environment::get().getStateManager()->quickSave("Autosave");
|
||||
|
||||
MWBase::World* world = MWBase::Environment::get().getWorld();
|
||||
world->getFader ()->fadeOut(0.2);
|
||||
setVisible(false);
|
||||
if(Settings::Manager::getBool("autosave","Saves") && mSleeping) //autosaves when enabled and sleeping (Not resting, apparently)
|
||||
MWBase::Environment::get().getStateManager()->quickSave("Autosave");
|
||||
mProgressBar.setVisible (true);
|
||||
|
||||
mWaiting = true;
|
||||
|
|
Loading…
Reference in a new issue