Skip to content

Fix crashes, clean up dead code, and fix documentation#1

Closed
Mohammad-Faiz-Cloud-Engineer wants to merge 1 commit into
npmaiecosystem:mainfrom
Mohammad-Faiz-Cloud-Engineer:main
Closed

Fix crashes, clean up dead code, and fix documentation#1
Mohammad-Faiz-Cloud-Engineer wants to merge 1 commit into
npmaiecosystem:mainfrom
Mohammad-Faiz-Cloud-Engineer:main

Conversation

@Mohammad-Faiz-Cloud-Engineer

Copy link
Copy Markdown
Contributor

This commit fixes several issues that would cause the app to crash or behave incorrectly:

  1. CRASH FIX - No internet: The app needed server settings to run, but if the internet was off or the server was down, the app would crash. Now it keeps working using the last saved settings, or shows a helpful message instead of crashing.

  2. CRASH FIX - Settings window: A window where you add passwords/API keys would crash when opening because of a wrong icon instruction. Fixed it to match how every other window in the app already works.

  3. SPEED IMPROVEMENT - Unnecessary work: A button was secretly redrawing itself 60 times every second even when untouched. Now it only updates when you actually hover over it - same look, no wasted work.

  4. DOCUMENTATION FIX - Wrong command: The README told users to type 'python main.py' but that file doesn't exist, so it would fail immediately. Corrected to the real filename.

  5. CLEANUP - Removed dead files and unused code:

    • Deleted an empty placeholder file (Docs/app.py - was just a blank line)
    • Deleted a shopping list for software packages that weren't actually needed (Docs/requirements.txt)
    • Removed 4 lines of imported code that were never used
    • Created .gitignore so temporary files don't get accidentally saved

All changes are safe and make the app more reliable.

This commit fixes several issues that would cause the app to crash or behave incorrectly:

1. CRASH FIX - No internet: The app needed server settings to run, but if
   the internet was off or the server was down, the app would crash. Now
   it keeps working using the last saved settings, or shows a helpful
   message instead of crashing.

2. CRASH FIX - Settings window: A window where you add passwords/API keys
   would crash when opening because of a wrong icon instruction. Fixed it
   to match how every other window in the app already works.

3. SPEED IMPROVEMENT - Unnecessary work: A button was secretly redrawing
   itself 60 times every second even when untouched. Now it only updates
   when you actually hover over it - same look, no wasted work.

4. DOCUMENTATION FIX - Wrong command: The README told users to type
   'python main.py' but that file doesn't exist, so it would fail
   immediately. Corrected to the real filename.

5. CLEANUP - Removed dead files and unused code:
   - Deleted an empty placeholder file (Docs/app.py - was just a blank line)
   - Deleted a shopping list for software packages that weren't actually
     needed (Docs/requirements.txt)
   - Removed 4 lines of imported code that were never used
   - Created .gitignore so temporary files don't get accidentally saved

All changes are safe and make the app more reliable.
@sonuramashishnpm

Copy link
Copy Markdown
Member

again reveiw it i did some chnages

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants