Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Possible to implement an update notification? #72

Closed
Hayashi-Tensai opened this issue Apr 25, 2022 · 9 comments
Closed

Possible to implement an update notification? #72

Hayashi-Tensai opened this issue Apr 25, 2022 · 9 comments

Comments

@Hayashi-Tensai
Copy link

It would be nice to have a feature where it informs the user of an update when a new version is available, or else it will be hard to tell when a new version releases

@hakandundar34coding
Copy link
Owner

This feature is added. It waits 5 seconds after the application is run and checks for updates. There is an option on General Settings window for disabling it.

It works if the application is installed as a Python package (pip install ...). Otherwise package manager of the system updates the application (deb, pacman, etc.). It works if the application is not run with root privileges.

Here is a screenshot:
smc_check_updates

You can download and replace these files if you do not want to wait for the new package:
/src/Conf/ig.py
/src/MainGUI.py
/src/SettingsGUI.py
/ui/SettingsWindow.ui

I will close this issue. You can write if it does not work when a new version is published.

@Hayashi-Tensai
Copy link
Author

ok noted, will check and see when a new version is released

@hakandundar34coding
Copy link
Owner

Latest version of the application (v1.13.0) is published. Update check feature is disabled by default. Some users may not want this option.

Enabling this option for one time is required to use it. You can follow these steps:

  • Manually update it for v1.13.0
  • Enable this option (from Main menu > Settings)
  • Close the application and reopen it.

It will check for the updates after about 5 seconds.

@Hayashi-Tensai
Copy link
Author

Hayashi-Tensai commented May 17, 2022

Regarding the update notification, I see that the latest version right now is v1.15.0 but I'm not seeing an update notification
image
I have the checkbox checked as well
image

I'm currently running v1.14.0 (I installed my installation using pip3)
image

@hakandundar34coding
Copy link
Owner

For checking the updates automatically:
The application have to be opened with this option enabled. You can close and rerun the application if you enabled this option.
It will check the updates after about 5-10 seconds.

Can you also try running this command from terminal?
pip index versions system-monitoring-center

If you updated to v1.15.0, you can try again tomorrow. v1.16.0 will be downloadable tomorrow. But there are no changes for update check code.

@Hayashi-Tensai
Copy link
Author

Hayashi-Tensai commented May 18, 2022

Even after leaving it open for a few minutes, it still does not have the notification

pip index versions system-monitoring-center returns me this response ERROR: unknown command "index

@hakandundar34coding
Copy link
Owner

What is your pip version?
You can use this command to learn it:
pip --version

pip 22.0.4 is installed on my system and it works. index parameter is not supported by the pip on your system.

@Hayashi-Tensai
Copy link
Author

Hayashi-Tensai commented May 18, 2022

It was indeed because I was running and older pip version, it was running on 20.3.4
After I upgraded my pip version, the command you gave me worked and update notification also does appear as well now
Thanks for your help!

image

@hakandundar34coding
Copy link
Owner

You can enable the option for checking the updates again after installing v1.16.0 (tomorrow) because it will reset the settings. There are some changes for the application (performance, etc.) and they require resetting the settings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants