mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-12 05:13:09 +08:00
opt: PeerTile center & keep peer search value
This commit is contained in:
parent
d2d531516a
commit
c14490cdbf
@ -158,6 +158,7 @@ class _PeerCardState extends State<_PeerCard>
|
|||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Row(children: [
|
Row(children: [
|
||||||
Padding(
|
Padding(
|
||||||
@ -729,9 +730,6 @@ class DiscoveredPeerCard extends BasePeerCard {
|
|||||||
menuItems.add(_wolAction(peer.id));
|
menuItems.add(_wolAction(peer.id));
|
||||||
menuItems.add(MenuEntryDivider());
|
menuItems.add(MenuEntryDivider());
|
||||||
menuItems.add(_renameAction(peer.id, false));
|
menuItems.add(_renameAction(peer.id, false));
|
||||||
menuItems.add(_removeAction(peer.id, () async {
|
|
||||||
await bind.mainLoadLanPeers();
|
|
||||||
}));
|
|
||||||
menuItems.add(_unrememberPasswordAction(peer.id));
|
menuItems.add(_unrememberPasswordAction(peer.id));
|
||||||
return menuItems;
|
return menuItems;
|
||||||
}
|
}
|
||||||
|
@ -42,9 +42,6 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
|
|
||||||
// hard code for now
|
// hard code for now
|
||||||
Future<void> _handleTabSelection(int index) async {
|
Future<void> _handleTabSelection(int index) async {
|
||||||
// reset search text
|
|
||||||
peerSearchText.value = "";
|
|
||||||
peerSearchTextController.clear();
|
|
||||||
_tabIndex.value = index;
|
_tabIndex.value = index;
|
||||||
await bind.mainSetLocalOption(
|
await bind.mainSetLocalOption(
|
||||||
key: 'peer-tab-index', value: index.toString());
|
key: 'peer-tab-index', value: index.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user