| 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); |
nothing calls this directly
no test coverage detected