mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Mount find explorer instead of local/remote; don't use a popup
This commit is contained in:
@@ -131,21 +131,29 @@ impl FileTransferActivity {
|
|||||||
store.set_unsigned(super::STORAGE_LOGBOX_WIDTH, chunks[1].width as usize);
|
store.set_unsigned(super::STORAGE_LOGBOX_WIDTH, chunks[1].width as usize);
|
||||||
}
|
}
|
||||||
// Draw explorers
|
// Draw explorers
|
||||||
|
// @! Local explorer (Find or default)
|
||||||
|
match self.tab {
|
||||||
|
FileExplorerTab::FindLocal => {
|
||||||
self.view
|
self.view
|
||||||
.render(super::COMPONENT_EXPLORER_LOCAL, f, tabs_chunks[0]);
|
.render(super::COMPONENT_EXPLORER_FIND, f, tabs_chunks[0])
|
||||||
|
}
|
||||||
|
_ => self
|
||||||
|
.view
|
||||||
|
.render(super::COMPONENT_EXPLORER_LOCAL, f, tabs_chunks[0]),
|
||||||
|
}
|
||||||
|
// @! Remote explorer (Find or default)
|
||||||
|
match self.tab {
|
||||||
|
FileExplorerTab::FindRemote => {
|
||||||
self.view
|
self.view
|
||||||
.render(super::COMPONENT_EXPLORER_REMOTE, f, tabs_chunks[1]);
|
.render(super::COMPONENT_EXPLORER_FIND, f, tabs_chunks[1])
|
||||||
|
}
|
||||||
|
_ => self
|
||||||
|
.view
|
||||||
|
.render(super::COMPONENT_EXPLORER_REMOTE, f, tabs_chunks[1]),
|
||||||
|
}
|
||||||
// Draw log box
|
// Draw log box
|
||||||
self.view.render(super::COMPONENT_LOG_BOX, f, chunks[1]);
|
self.view.render(super::COMPONENT_LOG_BOX, f, chunks[1]);
|
||||||
// Draw popups
|
// @! Draw popups
|
||||||
if let Some(mut props) = self.view.get_props(super::COMPONENT_EXPLORER_FIND) {
|
|
||||||
if props.build().visible {
|
|
||||||
let popup = draw_area_in(f.size(), 60, 80);
|
|
||||||
f.render_widget(Clear, popup);
|
|
||||||
// make popup
|
|
||||||
self.view.render(super::COMPONENT_EXPLORER_FIND, f, popup);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if let Some(mut props) = self.view.get_props(super::COMPONENT_INPUT_COPY) {
|
if let Some(mut props) = self.view.get_props(super::COMPONENT_INPUT_COPY) {
|
||||||
if props.build().visible {
|
if props.build().visible {
|
||||||
let popup = draw_area_in(f.size(), 40, 10);
|
let popup = draw_area_in(f.size(), 40, 10);
|
||||||
|
|||||||
Reference in New Issue
Block a user