Polyphase Game Engine
Loading...
Searching...
No Matches
GitOperationProgressDialog.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include "../GitTypes.h"
6#include <cstdint>
7
8class GitOperationProgressDialog
9{
10public:
11 void Draw();
12
13private:
14 bool mIsOpen = false;
15
16 // Auto-close timer: when operation completes, wait 2 seconds then close
17 bool mCompletionTimerStarted = false;
18 float mCompletionTimer = 0.0f;
19 static constexpr float kAutoCloseDelay = 2.0f;
20
21 // Cached last known operation state
22 bool mWasRunning = false;
23 GitProgressEvent mLastProgress;
24
25 // Cancel token for the current operation
26 GitCancelToken mActiveCancelToken;
27};
28
29GitOperationProgressDialog* GetGitOperationProgressDialog();
30
31#endif