mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Update the debug view every time GlobalStorage changes.
This commit is contained in:
parent
edb21e05af
commit
8729b6a25f
1 changed files with 8 additions and 1 deletions
|
@ -36,7 +36,14 @@ DebugWindow::DebugWindow()
|
||||||
QJsonModel* jsonModel = new QJsonModel( this );
|
QJsonModel* jsonModel = new QJsonModel( this );
|
||||||
|
|
||||||
globalStorageView->setModel( jsonModel );
|
globalStorageView->setModel( jsonModel );
|
||||||
jsonModel->loadJson( QJsonDocument::fromVariant( Calamares::JobQueue::instance()->globalStorage()->m ).toJson() );
|
GlobalStorage* gs = JobQueue::instance()->globalStorage();
|
||||||
|
|
||||||
|
connect( gs, &GlobalStorage::changed, [ jsonModel, gs ]
|
||||||
|
{
|
||||||
|
jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() );
|
||||||
|
} );
|
||||||
|
jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() );
|
||||||
|
|
||||||
|
|
||||||
CALAMARES_RETRANSLATE( retranslateUi( this ); )
|
CALAMARES_RETRANSLATE( retranslateUi( this ); )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue