full screen repaint when switching tabs
This commit is contained in:
parent
31d49d4432
commit
8ae9089975
1 changed files with 5 additions and 0 deletions
|
|
@ -367,6 +367,7 @@ pub const App = struct {
|
||||||
self.active_tab = t;
|
self.active_tab = t;
|
||||||
self.scroll_offset = 0;
|
self.scroll_offset = 0;
|
||||||
self.loadTabData();
|
self.loadTabData();
|
||||||
|
ctx.queueRefresh() catch {};
|
||||||
return ctx.consumeAndRedraw();
|
return ctx.consumeAndRedraw();
|
||||||
}
|
}
|
||||||
col += lbl_len;
|
col += lbl_len;
|
||||||
|
|
@ -496,6 +497,7 @@ pub const App = struct {
|
||||||
self.resetSymbolData();
|
self.resetSymbolData();
|
||||||
self.active_tab = .quote;
|
self.active_tab = .quote;
|
||||||
self.loadTabData();
|
self.loadTabData();
|
||||||
|
ctx.queueRefresh() catch {};
|
||||||
}
|
}
|
||||||
self.mode = .normal;
|
self.mode = .normal;
|
||||||
self.input_len = 0;
|
self.input_len = 0;
|
||||||
|
|
@ -561,12 +563,14 @@ pub const App = struct {
|
||||||
self.prevTab();
|
self.prevTab();
|
||||||
self.scroll_offset = 0;
|
self.scroll_offset = 0;
|
||||||
self.loadTabData();
|
self.loadTabData();
|
||||||
|
ctx.queueRefresh() catch {};
|
||||||
return ctx.consumeAndRedraw();
|
return ctx.consumeAndRedraw();
|
||||||
},
|
},
|
||||||
.next_tab => {
|
.next_tab => {
|
||||||
self.nextTab();
|
self.nextTab();
|
||||||
self.scroll_offset = 0;
|
self.scroll_offset = 0;
|
||||||
self.loadTabData();
|
self.loadTabData();
|
||||||
|
ctx.queueRefresh() catch {};
|
||||||
return ctx.consumeAndRedraw();
|
return ctx.consumeAndRedraw();
|
||||||
},
|
},
|
||||||
.tab_1, .tab_2, .tab_3, .tab_4, .tab_5, .tab_6 => {
|
.tab_1, .tab_2, .tab_3, .tab_4, .tab_5, .tab_6 => {
|
||||||
|
|
@ -577,6 +581,7 @@ pub const App = struct {
|
||||||
self.active_tab = target;
|
self.active_tab = target;
|
||||||
self.scroll_offset = 0;
|
self.scroll_offset = 0;
|
||||||
self.loadTabData();
|
self.loadTabData();
|
||||||
|
ctx.queueRefresh() catch {};
|
||||||
return ctx.consumeAndRedraw();
|
return ctx.consumeAndRedraw();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue