Skip to content

Commit

Permalink
fix: desktop window appbar (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
No06 authored Jul 5, 2024
1 parent 43cebd0 commit 4b3c487
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/view/page/home/appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ final class _AppBar extends CustomAppBar {

@override
Widget build(BuildContext context) {
if (isDesktop) return super.build(context);

final placeholder = SizedBox(
height: CustomAppBar.barHeight ?? 0 + MediaQuery.of(context).padding.top,
);
Expand All @@ -25,7 +27,7 @@ final class _AppBar extends CustomAppBar {
return ValBuilder(
listenable: selectIndex,
builder: (idx) {
if (idx == AppTab.ssh.index && !isWindows && !isLinux) {
if (idx == AppTab.ssh.index) {
return placeholder;
}
return super.build(context);
Expand Down

0 comments on commit 4b3c487

Please sign in to comment.