Skip to content

Conversation

@lucydodo
Copy link
Member

@lucydodo lucydodo commented Jul 28, 2020

Recently used files in DB4S were previously displayed at the bottom of the file menu.
However, I've implemented this idea because I thought it would be better to create a menu called Recent Files in the File menu, and access the recent files in it and delete the list if necessary.

and also, I'm ready to listen to any advice. This is because I'm NOT sure about the QT framework and I'm afraid about requesting this PR without knowing the atmosphere of the DB4S team to see if it is okay to send a contribution to the implementation of the function. I wait for your valuable advice or feedback. Thanks!

Known bugs

  • After opening the file, it is not added to the recent files list (but added normally when the DB4S is restarted)
  • I cross-validated with the nightly build (release on July 27, 2020) to confirm that is is a problem in my code.
    • MD5 : e1d4952fd91625403c7a57ca7be3e252
    • SHA256 : 53739c57b44c02fea06758eb6e95be12598c54da5f9700c52d48ff64d8ca90ba

Test Environment

  • macOS Catalina 10.15.6
  • Homebrew 2.4.9

SeongTae Jeong added 5 commits July 29, 2020 05:00
Declare a method prototype to handle the newly added menu item.
and delete divider(QAction *recentSeparatorAct) because that is no longer used.
Implement method that delete recent file list by newly added menu item.
and delete divider(QAction *recentSeparatorAct) because that is no longer used.
@justinclift
Copy link
Member

Seems like a reasonable idea. 😄

Btw, there's a typo in your description of the PR: Recent Lists -> Recent Files

The source code doesn't have the typo though. 😉

@lucydodo
Copy link
Member Author

I just fixed it. Thank you!

@justinclift justinclift added this to the 3.13.0 - Future release milestone Jul 28, 2020
@justinclift justinclift added the enhancement Feature requests. label Jul 28, 2020
@lucydodo
Copy link
Member Author

May I close the issue without further discussion?

@justinclift
Copy link
Member

Technically yes. First through, it's probably a better idea to let people know why you want to close it, just in case there's a better way. 😄

@lucydodo
Copy link
Member Author

There is no particular reason to close it. I will keep it for the time being for further better comments. :D

Copy link
Member

@mgrojo mgrojo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution, @lucydodo! I've made a review and if you address at least the main problem (actions should be hidden and not removed), I think it can be added to the master branch.

@lucydodo
Copy link
Member Author

lucydodo commented Aug 1, 2020

@mgrojo I have modified the code according to your review.
Please review it and give me another request if necessary. Thank you!

@mgrojo mgrojo merged commit ec6ff6a into sqlitebrowser:master Aug 1, 2020
@lucydodo lucydodo deleted the dev-recent_file_menus branch August 1, 2020 16:08
@mgrojo
Copy link
Member

mgrojo commented Aug 1, 2020

@lucydodo Nice work! It's now squashed and merged. Thank you! The list of recent files is now in line with current standards and it doesn't make the File menu so wide. Maybe we could increase now the number of recent files to 9, for example.

@lucydodo
Copy link
Member Author

lucydodo commented Aug 1, 2020

@mgrojo Thank you for merge, I couldn't be happier about it!
I think your idea is nice so I will try to give the user the option to increase the number of recent files list.

@mgrojo
Copy link
Member

mgrojo commented Aug 1, 2020

I think your idea is nice so I will try to give the user the option to increase the number of recent files list.

I simply meant to increase the value of MaxRecentFiles to get more entries in the list, but you are free to implement a preference for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature requests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants