summaryrefslogtreecommitdiff
path: root/raveos-calamares/0004-raveos-telepites-haladas.patch
blob: c5bd2086b4ddcac41ec1b7c1c1b3493ce20abb69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- a/src/libcalamaresui/viewpages/ExecutionViewStep.cpp
+++ b/src/libcalamaresui/viewpages/ExecutionViewStep.cpp
@@ -15,6 +15,7 @@
 
 #include "Branding.h"
 #include "CalamaresConfig.h"
+#include "GlobalStorage.h"
 #include "Job.h"
 #include "JobQueue.h"
 #include "Settings.h"
@@ -108,7 +109,28 @@
     barLayout->addWidget( m_progressBar );
     barLayout->addWidget( toolBar );
 
+    m_progressBar->hide();
+    m_label->hide();
+    toolBar->hide();
+
     connect( JobQueue::instance(), &JobQueue::progress, this, &ExecutionViewStep::updateFromJobQueue );
+
+    if ( auto* gs = JobQueue::instance()->globalStorage() )
+    {
+        connect( gs,
+                 &GlobalStorage::changed,
+                 this,
+                 [ this, gs ]()
+                 {
+                     const bool naploKell = gs->value( QStringLiteral( "raveosNaplo" ) ).toBool();
+                     const bool naploLatszik = m_tab_widget->currentIndex() == 1;
+                     if ( naploKell != naploLatszik )
+                     {
+                         toggleLog();
+                     }
+                 },
+                 Qt::QueuedConnection );
+    }
 }
 
 QString
@@ -217,6 +239,14 @@
     {
         m_label->setText( message );
     }
+    if ( auto* gs = JobQueue::instance()->globalStorage() )
+    {
+        gs->insert( QStringLiteral( "raveosHaladas" ), percent );
+        if ( !message.isEmpty() )
+        {
+            gs->insert( QStringLiteral( "raveosUzenet" ), message );
+        }
+    }
 }
 
 void