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

Method OnPathSelected

Goldleaf/source/ui/ui_RemotePcExploreLayout.cpp:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 void RemotePcExploreLayout::OnPathSelected() {
131 const auto idx = this->paths_menu->GetSelectedIndex() - 1; // Account for "Select File" item
132 g_MainApplication->LoadMenuData(true, cfg::Strings.GetString(299), GetCommonIcon(CommonIconKind::Drive), cfg::Strings.GetString(401));
133 g_MainApplication->GetBrowserLayout()->ChangePartitionRemotePcDrive(this->paths[idx]);
134 g_MainApplication->ShowLayout(g_MainApplication->GetBrowserLayout());
135 }
136
137 void RemotePcExploreLayout::OnSelectFileSelected() {
138 std::string selected_file;

Callers

nothing calls this directly

Calls 4

GetCommonIconFunction · 0.85
LoadMenuDataMethod · 0.80
ShowLayoutMethod · 0.80

Tested by

no test coverage detected