Track elevation state.

This commit is contained in:
Bartosz Taudul 2022-11-27 21:53:35 +01:00
parent 7e23d873dc
commit 59f7870345
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -51,6 +51,7 @@
#include "Filters.hpp" #include "Filters.hpp"
#include "Fonts.hpp" #include "Fonts.hpp"
#include "HttpRequest.hpp" #include "HttpRequest.hpp"
#include "IsElevated.hpp"
#include "ImGuiContext.hpp" #include "ImGuiContext.hpp"
#include "ResolvService.hpp" #include "ResolvService.hpp"
#include "RunQueue.hpp" #include "RunQueue.hpp"
@ -96,6 +97,7 @@ static void* iconTex;
static int iconTexSz; static int iconTexSz;
static Backend* bptr; static Backend* bptr;
static bool s_customTitle = false; static bool s_customTitle = false;
static bool s_isElevated = false;
static void SetWindowTitleCallback( const char* title ) static void SetWindowTitleCallback( const char* title )
{ {
@ -248,6 +250,7 @@ int main( int argc, char** argv )
} }
tracy::Fileselector::Init(); tracy::Fileselector::Init();
s_isElevated = IsElevated();
backend.Show(); backend.Show();
backend.Run(); backend.Run();