option collapse toolbar

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-06-11 15:28:41 +08:00
parent f72ed0d3e5
commit 844e7420de
38 changed files with 51 additions and 17 deletions

View File

@@ -1339,6 +1339,7 @@ class _DisplayState extends State<_Display> {
return _Card(title: 'Other Default Options', children: [
otherRow('View Mode', 'view_only'),
otherRow('show_monitors_tip', 'show_monitors_toolbar'),
otherRow('Collapse toolbar', 'collapse_toolbar'),
otherRow('Show remote cursor', 'show_remote_cursor'),
otherRow('Zoom cursor', 'zoom-cursor'),
otherRow('Show quality monitor', 'show_quality_monitor'),

View File

@@ -103,6 +103,8 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
final switchUuid = args['switch_uuid'];
window_on_top(windowId());
ConnectionTypeState.init(id);
_menubarState.setShow(
bind.mainGetUserDefaultOption(key: 'collapse_toolbar') != 'Y');
tabController.add(TabInfo(
key: id,
label: id,

View File

@@ -56,7 +56,8 @@ class MenubarState {
_initSet(bool s, bool p) {
// Show remubar when connection is established.
show = RxBool(true);
show =
RxBool(bind.mainGetUserDefaultOption(key: 'collapse_toolbar') != 'Y');
_pin = RxBool(p);
}