Merge pull request #1517 from CarlosNihelton/no-switch-shell-wsl-325

Removes the switch to shell widget
This commit is contained in:
Carlos Nihelton 2022-12-12 14:29:14 +00:00 committed by GitHub
commit d330449dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -9,9 +9,6 @@ from subiquity.common.types import (
ApplicationState, ApplicationState,
ShutdownMode ShutdownMode
) )
from subiquity.ui.views.installprogress import (
InstallRunning,
)
from system_setup.ui.views.summary import SummaryView from system_setup.ui.views.summary import SummaryView
@ -48,7 +45,6 @@ class SummaryController(SubiquityTuiController):
@with_context() @with_context()
async def _wait_status(self, context): async def _wait_status(self, context):
install_running = None
while True: while True:
try: try:
app_status = await self.app.client.meta.status.GET( app_status = await self.app.client.meta.status.GET(
@ -67,16 +63,6 @@ class SummaryController(SubiquityTuiController):
self.ui.set_body(self.summary_view) self.ui.set_body(self.summary_view)
self.app.show_error_report(self.crash_report_ref) self.app.show_error_report(self.crash_report_ref)
if self.app_state == ApplicationState.RUNNING:
if app_status.confirming_tty != self.app.our_tty:
install_running = InstallRunning(
self.app, app_status.confirming_tty)
self.app.add_global_overlay(install_running)
else:
if install_running is not None:
self.app.remove_global_overlay(install_running)
install_running = None
if self.app_state == ApplicationState.DONE: if self.app_state == ApplicationState.DONE:
if self.answers.get('reboot', False): if self.answers.get('reboot', False):
self.click_reboot() self.click_reboot()