filebrowser: Do not freeze header and explicitly use namespace for GUI functions

This commit is contained in:
Joel16 2022-08-01 19:02:24 -04:00
parent 8312090e20
commit 58dfe61a54
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ namespace GUI {
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
if (!InitEGL(nwindowGetDefault()))
if (!GUI::InitEGL(nwindowGetDefault()))
return false;
gladLoadGL();
@ -162,6 +162,6 @@ namespace GUI {
void Exit(void) {
ImGui_ImplSwitch_Shutdown();
ExitEGL();
GUI::ExitEGL();
}
}

View File

@ -107,7 +107,7 @@ namespace Tabs {
if (ImGui::BeginTable("Directory List", 3, tableFlags)) {
// Make header always visible
ImGui::TableSetupScrollFreeze(0, 1);
// ImGui::TableSetupScrollFreeze(0, 1);
ImGui::TableSetupColumn("", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_NoHeaderLabel | ImGuiTableColumnFlags_WidthFixed);
ImGui::TableSetupColumn("Filename", ImGuiTableColumnFlags_DefaultSort);