[calamares] Leave a note about changing close-window hint
This commit is contained in:
parent
2208ff95fe
commit
a5cba02769
@ -165,6 +165,14 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
|
||||
m_viewManager = Calamares::ViewManager::instance( this );
|
||||
if ( branding->windowExpands() )
|
||||
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() );
|
||||
setStyleSheet( Calamares::Branding::instance()->stylesheet() );
|
||||
|
Loading…
Reference in New Issue
Block a user