Make list manager run private (#4192)
This commit is contained in:
parent
aac6c896d9
commit
4a8604ac88
|
|
@ -191,7 +191,7 @@ class PartitioningList(ListManager[DiskSegment]):
|
||||||
return [s.segment for s in disk_segments if isinstance(s.segment, PartitionModification)]
|
return [s.segment for s in disk_segments if isinstance(s.segment, PartitionModification)]
|
||||||
|
|
||||||
def show(self) -> DeviceModification | None:
|
def show(self) -> DeviceModification | None:
|
||||||
disk_segments = super().run()
|
disk_segments = super()._run()
|
||||||
|
|
||||||
if not disk_segments:
|
if not disk_segments:
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class SubvolumeMenu(ListManager[SubvolumeModification]):
|
||||||
)
|
)
|
||||||
|
|
||||||
def show(self) -> list[SubvolumeModification] | None:
|
def show(self) -> list[SubvolumeModification] | None:
|
||||||
return super().run()
|
return super()._run()
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def selected_action_display(self, selection: SubvolumeModification) -> str:
|
def selected_action_display(self, selection: SubvolumeModification) -> str:
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class ListManager[ValueT]:
|
||||||
return self._last_choice == self._cancel_action
|
return self._last_choice == self._cancel_action
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def run(self) -> list[ValueT] | None:
|
def _run(self) -> list[ValueT] | None:
|
||||||
additional_options = self._base_actions + self._terminate_actions
|
additional_options = self._base_actions + self._terminate_actions
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class CustomMirrorRepositoriesList(ListManager[CustomRepository]):
|
||||||
)
|
)
|
||||||
|
|
||||||
def show(self) -> list[CustomRepository] | None:
|
def show(self) -> list[CustomRepository] | None:
|
||||||
return super().run()
|
return super()._run()
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def selected_action_display(self, selection: CustomRepository) -> str:
|
def selected_action_display(self, selection: CustomRepository) -> str:
|
||||||
|
|
@ -162,7 +162,7 @@ class CustomMirrorServersList(ListManager[CustomServer]):
|
||||||
)
|
)
|
||||||
|
|
||||||
def show(self) -> list[CustomServer] | None:
|
def show(self) -> list[CustomServer] | None:
|
||||||
return super().run()
|
return super()._run()
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def selected_action_display(self, selection: CustomServer) -> str:
|
def selected_action_display(self, selection: CustomServer) -> str:
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class ManualNetworkConfig(ListManager[Nic]):
|
||||||
)
|
)
|
||||||
|
|
||||||
def show(self) -> list[Nic] | None:
|
def show(self) -> list[Nic] | None:
|
||||||
return super().run()
|
return super()._run()
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def selected_action_display(self, selection: Nic) -> str:
|
def selected_action_display(self, selection: Nic) -> str:
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class UserList(ListManager[User]):
|
||||||
)
|
)
|
||||||
|
|
||||||
def show(self) -> list[User] | None:
|
def show(self) -> list[User] | None:
|
||||||
return super().run()
|
return super()._run()
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def selected_action_display(self, selection: User) -> str:
|
def selected_action_display(self, selection: User) -> str:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue