Skip to content

Commit

Permalink
show user logged in state after startup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Jul 19, 2023
1 parent 45ce4df commit edce0c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions source/Gui/BrowserWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ _BrowserWindow::_BrowserWindow(
, _viewport(viewport)
, _temporalControlWindow(temporalControlWindow)
{
auto firstStart = GlobalSettings::getInstance().getBoolState("windows.browser.first start", true);
refreshIntern(firstStart);
_showCommunityCreations = GlobalSettings::getInstance().getBoolState("windows.browser.show community creations", _showCommunityCreations);
}

_BrowserWindow::~_BrowserWindow()
Expand All @@ -60,6 +57,10 @@ void _BrowserWindow::registerCyclicReferences(LoginDialogWeakPtr const& loginDia
{
_loginDialog = loginDialog;
_uploadSimulationDialog = uploadSimulationDialog;

auto firstStart = GlobalSettings::getInstance().getBoolState("windows.browser.first start", true);
refreshIntern(firstStart);
_showCommunityCreations = GlobalSettings::getInstance().getBoolState("windows.browser.show community creations", _showCommunityCreations);
}

void _BrowserWindow::onRefresh()
Expand Down
1 change: 1 addition & 0 deletions source/Gui/BrowserWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class _BrowserWindow : public _AlienWindow

void processSimulationTable();
void processUserTable();

void processStatus();
void processFilter();
void processToolbar();
Expand Down
6 changes: 2 additions & 4 deletions source/Gui/StartupController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ void _StartupController::processWindow()
ImGui::Image((void*)(intptr_t)_logo.textureId, ImVec2(_logo.width * imageScale, _logo.height * imageScale));
ImGui::End();

if (_state == State::Unintialized || _state == State::RequestLoading) {
drawGrid();
}
drawGrid();

ImDrawList* drawList = ImGui::GetBackgroundDrawList();
ImColor textColor = Const::ProgramVersionColor;
Expand Down Expand Up @@ -163,7 +161,7 @@ namespace
drawGridIntern(lineDistance / 2, maxDistance, direction, false);
}
ImDrawList* drawList = ImGui::GetBackgroundDrawList();
auto alpha = std::min(1.0f, lineDistance / 20.0f);
auto alpha = std::min(1.0f, lineDistance / 20.0f) * ImGui::GetStyle().Alpha;
float accumulatedDistance = 0.0f;

if (!includeMainLine) {
Expand Down

0 comments on commit edce0c2

Please sign in to comment.