refact: remote toolbar show/hide (#13843)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-12-19 20:45:22 +08:00
committed by GitHub
parent 3e0688ab63
commit d6463f95b9
6 changed files with 73 additions and 37 deletions

View File

@@ -250,11 +250,11 @@ class _ViewCameraTabPageState extends State<ViewCameraTabPage> {
MenuEntryButton<String>(
childBuilder: (TextStyle? style) => Obx(() => Text(
translate(
toolbarState.show.isTrue ? 'Hide Toolbar' : 'Show Toolbar'),
toolbarState.hide.isTrue ? 'Show Toolbar' : 'Hide Toolbar'),
style: style,
)),
proc: () {
toolbarState.switchShow(sessionId);
toolbarState.switchHide(sessionId);
cancelFunc();
},
padding: padding,