[#1223] lens/tui: Fix exit on loading cancel

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
Aleksey Savchuk 2024-08-08 10:23:07 +03:00
parent a3e0380e43
commit c54ae73841
No known key found for this signature in database

View file

@ -268,6 +268,9 @@ func (ui *UI) mountAndUpdate(ctx context.Context) {
// Not saving previously mounted page in history on new mount is
// exceptional, we always want to have previously mounted page saved.
ui.saveMounted = true
// After application started the first mount either fails or succeeds.
ui.isFirstMount = false
}()
s := loadOp(ctx, ui.pageToMount.Mount)