WolvenKit
WolvenKit copied to clipboard
WScript shortcut in Log dock ignores update of WKit-Resources on first launch
Describe the bug WScript shortcut in Log dock was introduced by #1939. On first launch, the list of scripts will only show User scripts and not System scripts.
To Reproduce Steps to reproduce the behavior:
- Build with release mode (make sure
Resources/Scripts/is empty) - Launch app
- Click on dropdown field in Log dock
- Only User scripts are listed
Expected behavior
It should take into account downloaded scripts from WolvenKit-Resources.
This is a minor issue as System scripts will be present on the next run. Furthermore, user can click the refresh button to update the list of scripts on the first run.
Version
- not released yet
Leads
I suggested the implementation of a ScriptFileRepository to isolate the management of script files.
This repository could:
- load script files from WolvenKit-Resources repository.
- load script files from FileSystem (update scripts).
- reload code of a script file.
- provide an observable to emit script files.
This way, script files could be listen to, using this repository in ScriptManagerViewModel and in LogViewModel.