MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / refreshClientModList

Function refreshClientModList

modAssist_main.js:883–914  ·  view source on GitHub ↗
(closeLoader = true)

Source from the content-addressed store, hash-verified

881
882// MARK: refresh list
883function refreshClientModList(closeLoader = true) {
884 // DATA STRUCT - send mod list
885 const currentVersion = funcLib.prefs.ver()
886 const pollGame = serveIPC.storeSet.get('poll_game', true)
887 serveIPC.isGamePolling = currentVersion > 17 && pollGame
888
889 // updateGameRunning()
890 serveIPC.windowLib.sendModList(
891 {
892 activeCollection : serveIPC.gameSetOverride.index,
893 cacheGameSave : serveIPC.cacheGameSave,
894 currentLocale : serveIPC.l10n.currentLocale,
895 devControls : serveIPC.devControls,
896 foldersDirty : serveIPC.isFoldersDirty,
897 foldersEdit : serveIPC.isFoldersEdit,
898 gameRunning : serveIPC.isGameRunning,
899 gameRunningEnable : serveIPC.isGamePolling,
900 isDev : !app.isPackaged,
901 l10n : {
902 disable : __('override_disabled'),
903 unknown : __('override_unknown'),
904 },
905 modSites : serveIPC.storeSites.store,
906 pinMini : serveIPC.windowLib.isAlwaysOnTop('mini'),
907 showMini : serveIPC.windowLib.isVisible('mini'),
908 },
909 'mods:list',
910 'main',
911 closeLoader
912 )
913 serveIPC.windowLib.sendToValidWindow('version', 'win:forceRefresh')
914}
915
916
917// MARK: FILE OPS

Callers 1

modAssist_main.jsFile · 0.85

Calls 6

__Function · 0.85
sendModListMethod · 0.80
isAlwaysOnTopMethod · 0.80
isVisibleMethod · 0.80
sendToValidWindowMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected