fix hideSort not conform to currentTab

This commit is contained in:
rustdesk 2023-06-21 01:23:27 +08:00
parent 3b39a0dc44
commit 0fc98a9a76

View File

@ -41,7 +41,7 @@ EdgeInsets? _menuPadding() {
class _PeerTabPageState extends State<PeerTabPage>
with SingleTickerProviderStateMixin {
bool _hideSort = bind.getLocalFlutterConfig(k: 'peer-tab-index') == '0';
bool _hideSort = gFFI.peerTabModel.currentTab == 0;
final List<_TabEntry> entries = [
_TabEntry(