Open aaabidunique opened 4 years ago
Its a good idea, you can submit a PR for this. For update related data, GitHub api for release can be used.
@subhra74 I Want to change a bit of UI in order to implement my idea. Need your suggestion on these changes.
FYI, When opening about it will check for update and change UI accordingly.
Perhaps it would be great if user get a notification in main screen if a new version is released, instead of opening the info screen
Ya thats an excellent idea. I think we should incorporate both the functionality. What do you think??
Yes, sounds great. For json you can use jackson, as its already been used in the project
Also if you are implementing notifications, try not to use joptionpane or any modal dialog
I don't have much experience with swing, so what do you suggest in place of joptionpane or model??
Perhaps a small notification panel inside the main window. Or a tray notification could work as well
I think notification panel/ tray notification may work but since this project is available as other packages (snap/flatpak) also and which get updated via system update, we should think of different strategy. Example : while opening the app we will perform check for update in background and if update is available, we will show a dialog with changelog and button to open the github page.
Suggestion : We should implement menus to club functionlity and maybe add more functionlity in future and for update we can add it in about menu.
personally i do not like modal dialog opening when i am in a hurry and opening the app shows a modal and blocks the ui. notification is better, and when user clicks on the notification, the dialog can be shown which can show change-log and if user is interested then he can click on the update button which might redirect to github. if user is using snap or some other distro specific update, we can introduce a command line flag to not to check for update. the command line can be added to the launcher shell script
A slightly different approach.
Any feedback on the approach?
@subhra74 Any comments for the above?
thanks, it looks good. How ever if you are willing to implement this please make changes to muon branch, as it will become master soon. There is already a button, so you can just add some badge to point out new update is available:
@subhra74 I think it will be better once you move muon to master and everything is working fine, I will make the changes to master.
Is your feature request related to a problem? Please describe. Check for update currently open below page for update information, https://subhra74.github.io/snowflake/check-update.html?v=someversion Instead I think checking for update in background and open browser only when an update is available will be the better approach.
Describe the solution you'd like Check in background and open browser only in case of update is available or else show No Update Available
Describe alternatives you've considered NA Additional context NA
FYI, I can do the said changes if you agree with the request.
P.S If you agree with the idea I will be needing a json data from url similar to check for update url consisting of few informations.