Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix refresh icon stops after switching tab

21pages9cba0a0b8993
diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dart
index 30b67abbe..259a59300 100644
--- a/flutter/lib/common/widgets/peer_tab_page.dart
+++ b/flutter/lib/common/widgets/peer_tab_page.dart
@@ -203,9 +203,9 @@ class _PeerTabPageState extends State<PeerTabPage>
}
Widget _createRefresh() {
- if (gFFI.peerTabModel.currentTab < 3) return Offstage();
final textColor = Theme.of(context).textTheme.titleLarge?.color;
- return Container(
+ return Offstage(
+ offstage: gFFI.peerTabModel.currentTab != PeerTabIndex.ab.index,
child: RefreshWidget(
onPressed: () {
if (gFFI.peerTabModel.currentTab < entries.length) {