File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,6 +238,20 @@ void MainUI::updateLiveSessionStatusText() {
238238 if (commitmentHub.getcurrentLiveSessionWidget ().getCurrentState () ==
239239 LiveSessionState::Started) {
240240 liveSessionStatusText += LIVESSION_IN_PROGRESS;
241+ switch (Engine::Timer::getInstance ()->timerHookState ) {
242+ case Engine::Hook::HookState::productive: {
243+ qDebug () << " productive case" ;
244+ liveSessionStatusText += " (productive)" ;
245+ break ;
246+ }
247+ case Engine::Hook::HookState::unproductive: {
248+ liveSessionStatusText += " (unproductive)" ;
249+ qDebug () << " unproductive case" ;
250+ break ;
251+ }
252+ default :
253+ break ;
254+ }
241255 } else if (commitmentHub.getcurrentLiveSessionWidget ().getCurrentState () ==
242256 LiveSessionState::Paused) {
243257 liveSessionStatusText += LIVESESSION_PAUSED;
Original file line number Diff line number Diff line change 77#include < memory>
88
99#include " CommStatsQWidget.h"
10+ #include " Timer.h"
1011#define ICONPATH " :/resources/clock-256.png"
1112
1213/* *
1314Status strings for what is happening with the current live session.
1415*/
15- #define LIVESESSION_PENDING " : Pending"
16- #define LIVESSION_IN_PROGRESS " : In Progress"
17- #define LIVESSION_COMPLETE " : Completed"
18- #define LIVESESSION_PAUSED " : Paused"
16+ #define LIVESESSION_PENDING " Pending"
17+ #define LIVESSION_IN_PROGRESS " In Progress"
18+ #define LIVESSION_COMPLETE " Completed"
19+ #define LIVESESSION_PAUSED " Paused"
1920
2021/* *
2122 * @brief The MainUI class is the one responsible
You can’t perform that action at this time.
0 commit comments