MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / OnMountedExplorerSelected

Method OnMountedExplorerSelected

Goldleaf/source/ui/ui_ExploreMenuLayout.cpp:160–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 void ExploreMenuLayout::OnMountedExplorerSelected(fs::Explorer *exp, const std::string &name, pu::sdl2::TextureHandle::Ref icon) {
161 g_MainApplication->LoadMenuData(true, name, icon, g_MainApplication->GetBrowserLayout()->GetExplorer()->GetPresentableCwd());
162 g_MainApplication->GetBrowserLayout()->ChangePartitionExplorer(exp);
163 g_MainApplication->ShowLayout(g_MainApplication->GetBrowserLayout());
164 }
165
166 void ExploreMenuLayout::OnMountedExplorerSelectedX(fs::Explorer *exp) {
167 const auto option = g_MainApplication->DisplayDialog(cfg::Strings.GetString(404), cfg::Strings.GetString(405), { cfg::Strings.GetString(111), cfg::Strings.GetString(18) }, true);

Callers

nothing calls this directly

Calls 5

LoadMenuDataMethod · 0.80
GetPresentableCwdMethod · 0.80
ShowLayoutMethod · 0.80
GetExplorerMethod · 0.45

Tested by

no test coverage detected