mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 09:39:51 +00:00
Removes add behavior when pressing escape while waiting.
This commit is contained in:
parent
033f1850f9
commit
a5cfa8a049
@ -71,7 +71,8 @@ namespace MWGui
|
||||
|
||||
void WaitDialog::exit()
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
||||
if(!mProgressBar.isVisible()) //Only exit if not currently waiting
|
||||
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
||||
}
|
||||
|
||||
void WaitDialog::open()
|
||||
|
@ -23,6 +23,11 @@ void WindowBase::setVisible(bool visible)
|
||||
close();
|
||||
}
|
||||
|
||||
bool WindowBase::isVisible()
|
||||
{
|
||||
return mMainWidget->getVisible();
|
||||
}
|
||||
|
||||
void WindowBase::center()
|
||||
{
|
||||
// Centre dialog
|
||||
|
@ -29,6 +29,8 @@ namespace MWGui
|
||||
virtual void exit() {}
|
||||
///Sets the visibility of the window
|
||||
virtual void setVisible(bool visible);
|
||||
///Returns the visibility state of the window
|
||||
virtual bool isVisible();
|
||||
void center();
|
||||
|
||||
/** Event : Dialog finished, OK button clicked.\n
|
||||
|
Loading…
x
Reference in New Issue
Block a user