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

Method OnMountedExplorerSelectedX

Goldleaf/source/ui/ui_ExploreMenuLayout.cpp:166–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
168 if(option == 0) {
169 fs::UnregisterMountedExplorer(exp);
170 this->mounted_explorer_items.erase(exp);
171 this->ReloadMenu();
172 g_MainApplication->ShowNotification(cfg::Strings.GetString(406));
173 }
174 }
175
176 void ExploreMenuLayout::AddMountedExplorer(fs::Explorer *exp, const std::string &name, pu::sdl2::TextureHandle::Ref icon) {
177 auto mounted_exp_item = pu::ui::elm::MenuItem::New(name);

Callers

nothing calls this directly

Calls 4

ReloadMenuMethod · 0.95
DisplayDialogMethod · 0.80
ShowNotificationMethod · 0.80

Tested by

no test coverage detected