Skip to content

Commit

Permalink
fix: missing hide button
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Oct 28, 2024
1 parent 45a6f84 commit 14373a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/app_shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ class MobileAppBar extends StatelessWidget implements PreferredSizeWidget {
),
),
const Spacer(),
const GlobalHideToggleButton(),
const SizedBox(width: 8),
const SyncButton(),
const SizedBox(
width: 24,
Expand Down
3 changes: 2 additions & 1 deletion lib/blocs/hide/hide_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ class HideBloc extends Bloc<HideEvent, HideState> {
performedAction:
settings.isHidden ? RevisionAction.hide : RevisionAction.unhide,
);
await _driveDao.updateDrive(driveCompanion.toEntryCompanion());

await _driveDao.insertDriveRevision(driveCompanion);
}
});
}
Expand Down
1 change: 1 addition & 0 deletions lib/models/drive_revision.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ extension DriveRevisionCompanionExtensions on DriveRevisionsCompanion {
privacy: privacy.value,
customGQLTags: customGQLTags,
customJsonMetadata: customJsonMetadata,
isHidden: isHidden,
);

/// Returns a [NetworkTransactionsCompanion] representing the metadata transaction
Expand Down

0 comments on commit 14373a0

Please sign in to comment.