Skip to content
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

[Refractor] Update Tab #3230

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

MyDrift-user
Copy link
Contributor

@MyDrift-user MyDrift-user commented Mar 3, 2025

Type of Change

  • Refactoring

Description

  • Move Update Templates to left collumn
  • Add Update Manager (Imagine MS not being able to let u choose the Updates you want to install)

TODO:

  • Refractor Tab Frontend
  • Add Update search logic
  • Add Install logic
  • Fix install logic
  • Add Status logic
  • Add Update History View
  • cleanup & document code

You are able to search for updates, select the ones you want to install:
image
image

You are also able to view your Update History:
image

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

- move update presets to smaller collumn
- add new collumn for windows update manager
- add datagrid
- add datagrid style
- add Computername into DataGrid (if needed)
- add toggle for Update History
- add Update History interface
- add Update Interface Toggle Logic
- add Update scan logic
- initialize Update selected / all logic
- center specific datagrid columns
- added verbose checkbox
- added longtitle
- added install selected logic
- added install all logic
Install-WindowsUpdate -Confirm:$false -IgnoreReboot:$true -IgnoreRebootRequired:$true
}
$sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" })
Write-Host "All Update Processes Completed"
Copy link
Contributor

Choose a reason for hiding this comment

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

Currently neither the install all, nor install selected code handles updating the DataGrid (Updates List) according to the result of installation (if successful, remove the update(s) from the list, otherwise keep them) which'll help visualize the remaining updates. Of course an easier solution is to call Invoke-WPFUpdateScan that gets all of the updates (for the third time, first two is done by user when clicking the button, and the second by install code), and also update DataGrid.

- refractor scans into one function
- create Invoke-WinUtilInitializeModule Function & use it accordingly
- refractor Update Installation process
- refractor DataGrid Item-management through Itemsource for better Main Thread performance
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.

3 participants