[calamares] Leave a note about changing close-window hint
This commit is contained in:
parent
2208ff95fe
commit
a5cba02769
@ -165,7 +165,15 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
|
|||||||
m_viewManager = Calamares::ViewManager::instance( this );
|
m_viewManager = Calamares::ViewManager::instance( this );
|
||||||
if ( branding->windowExpands() )
|
if ( branding->windowExpands() )
|
||||||
connect( m_viewManager, &Calamares::ViewManager::enlarge, this, &CalamaresWindow::enlarge );
|
connect( m_viewManager, &Calamares::ViewManager::enlarge, this, &CalamaresWindow::enlarge );
|
||||||
|
// NOTE: Although the ViewManager has a signal cancelEnabled() that
|
||||||
|
// signals when the state of the cancel button changes (in
|
||||||
|
// particular, to disable cancel during the exec phase),
|
||||||
|
// we don't connect to it here. Changing the window flag
|
||||||
|
// for the close button causes uncomfortable window flashing
|
||||||
|
// and requires an extra show() (at least with KWin/X11) which
|
||||||
|
// is too annoying. Instead, leave it up to ignoring-the-quit-
|
||||||
|
// event, which is also the ViewManager's responsibility.
|
||||||
|
|
||||||
mainLayout->addWidget( m_viewManager->centralWidget() );
|
mainLayout->addWidget( m_viewManager->centralWidget() );
|
||||||
setStyleSheet( Calamares::Branding::instance()->stylesheet() );
|
setStyleSheet( Calamares::Branding::instance()->stylesheet() );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user