mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Removed will_umount from components
This commit is contained in:
@@ -259,15 +259,6 @@ impl Component for FileList {
|
||||
|
||||
// -- events
|
||||
|
||||
/// ### should_umount
|
||||
///
|
||||
/// The component must provide to the supervisor whether it should be umounted (destroyed)
|
||||
/// This makes sense to be called after an `on` or after an `update`, where the states changes.
|
||||
fn should_umount(&self) -> bool {
|
||||
// Never true
|
||||
false
|
||||
}
|
||||
|
||||
/// ### blur
|
||||
///
|
||||
/// Blur component; basically remove focus
|
||||
@@ -314,8 +305,6 @@ mod tests {
|
||||
// Increment list index
|
||||
component.states.list_index += 1;
|
||||
assert_eq!(component.render().unwrap().cursor, 1);
|
||||
// Should umount
|
||||
assert_eq!(component.should_umount(), false);
|
||||
// Update
|
||||
component.update(
|
||||
component
|
||||
|
||||
Reference in New Issue
Block a user