-
-
Notifications
You must be signed in to change notification settings - Fork 268
Added remove file from recent opened files #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hpoul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR 👍️
do you think you could change that to be like a context menu - for example like the group list does it:
authpass/authpass/lib/ui/screens/group_list.dart
Lines 604 to 650 in 31e7341
| final action = await showDialog<GroupAction>( | |
| context: context, | |
| builder: (context) => SimpleDialog( | |
| title: Text(group.name(loc)), | |
| children: <Widget>[ | |
| if (!group.isOrInRecycleBin) ...[ | |
| SimpleDialogOption( | |
| onPressed: () => | |
| Navigator.of(context).pop(GroupAction.create), | |
| child: ListTile( | |
| leading: const Icon(Icons.create_new_folder), | |
| title: Text(loc.createSubgroup), | |
| ), | |
| ), | |
| ], | |
| SimpleDialogOption( | |
| onPressed: () => | |
| Navigator.of(context).pop(GroupAction.edit), | |
| child: ListTile( | |
| leading: const Icon(FontAwesomeIcons.edit), | |
| title: Text(loc.editAction), | |
| ), | |
| ), | |
| if (!group.isRoot && | |
| !group.isRecycleBin && | |
| !group.inRecycleBin) ...[ | |
| SimpleDialogOption( | |
| onPressed: () => | |
| Navigator.of(context).pop(GroupAction.delete), | |
| child: ListTile( | |
| leading: const Icon(Icons.delete), | |
| title: Text(loc.deleteAction), | |
| ), | |
| ), | |
| ], | |
| if (group.inRecycleBin) ...[ | |
| SimpleDialogOption( | |
| onPressed: () => Navigator.of(context) | |
| .pop(GroupAction.deletePermanently), | |
| child: ListTile( | |
| leading: const Icon(Icons.delete_forever), | |
| title: Text(loc.deletePermanentlyAction), | |
| )) | |
| ], | |
| ], | |
| ), | |
| ); |
currently it would only show one option - something like "Remove from list". (I wouldn't call it "Remove recent file" because it does not remove/delete the file. It just hides it from the list.
thanks!
|
hey @hpoul is that correct? |
|
Looks good! As long as it actually disappears from the list? 🤔️ Is it not refreshing? I'm still thinking about the wording.. maybe we should call it literally "Hide from list", any thoughts? |
It is refreshing perfectly. |
|
for now I would just hide it once.. and that's it.. we can in a later step show a "Delete file" menu item next to it for local files. But lets first finish the "hide" |
Yeah,check once updated screenshots.
|
|
yep, screenshots look good! |
|
hey I commited the code ,but what's the issue in checks? |
|
It looks like Also make sure that |
|
great thanks.. I've just added CHANGELOG and changed the |
Codecov Report
@@ Coverage Diff @@
## master #260 +/- ##
=========================================
- Coverage 2.12% 2.12% -0.01%
=========================================
Files 105 105
Lines 9728 9750 +22
=========================================
Hits 207 207
- Misses 9521 9543 +22
Continue to review full report at Codecov.
|


Fixes #260