mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 00:48:22 -04:00
[libcalamaresui] Disallow closing the window during execution
- If the disable-cancel-during-exec setting is on, and the user clicks the window-close button, then disregard the close message.
This commit is contained in:
parent
ad4352b65c
commit
088fa5004c
1 changed files with 2 additions and 0 deletions
|
@ -373,6 +373,8 @@ bool ViewManager::confirmCancelInstallation()
|
|||
|
||||
if ( settings->disableCancel() )
|
||||
return false;
|
||||
if ( settings->dontCancel() && stepIsExecute( m_steps, m_currentStep ) )
|
||||
return false;
|
||||
|
||||
// If it's NOT the last page of the last step, we ask for confirmation
|
||||
if ( !( m_currentStep == m_steps.count() -1 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue