Skip to content

Commit

Permalink
restore "system" displaying on first boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabxx committed Nov 6, 2023
1 parent a30b778 commit 18baa7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ui/xui/main-menu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,11 @@ void MainMenuScene::ShowSettings()
SetNextViewIndexWithFocus(m_current_view_index);
}

void MainMenuScene::ShowSystem()
{
SetNextViewIndexWithFocus(6);
}

void MainMenuScene::SetNextViewIndexWithFocus(int i)
{
m_focus_view = true;
Expand Down
1 change: 1 addition & 0 deletions ui/xui/main-menu.hh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ protected:
public:
MainMenuScene();
void ShowSettings();
void ShowSystem();
void SetNextViewIndexWithFocus(int i);
void Show() override;
void Hide() override;
Expand Down
2 changes: 1 addition & 1 deletion ui/xui/welcome.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void FirstBootWindow::Draw()

ImGui::SetCursorPosX((ImGui::GetWindowWidth()-120*g_viewport_mgr.m_scale)/2);
if (ImGui::Button("Settings", ImVec2(120*g_viewport_mgr.m_scale, 0))) {
g_main_menu.ShowSettings();
g_main_menu.ShowSystem();
g_config.general.show_welcome = false;
}

Expand Down

0 comments on commit 18baa7b

Please sign in to comment.