mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-18 05:00:38 -05:00
fix: disable tab switch if loading
This commit is contained in:
@@ -85,6 +85,8 @@ class _TabStatefulScaffoldState<T> extends State<TabStatefulScaffold<T>> {
|
||||
}
|
||||
|
||||
Future<void> _switch(int selected) async {
|
||||
if (_loading) return;
|
||||
|
||||
setState(() {
|
||||
_activeTab = selected;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user