fix: display notification on user resourecepack enable

This commit is contained in:
Vitaly Turovsky 2025-02-26 03:33:49 +03:00
commit 59cb442225

View file

@ -15,6 +15,7 @@ import { downloadPacketsReplay, packetsReplaceSessionState } from './packetsRepl
import { showOptionsModal } from './react/SelectOption'
import supportedVersions from './supportedVersions.mjs'
import { getVersionAutoSelect } from './connect'
import { createNotificationProgressReporter } from './core/progressReporter'
export const guiOptionsScheme: {
[t in OptionsGroupType]: Array<{ [K in keyof AppOptions]?: Partial<OptionMeta<AppOptions[K]>> } & { custom? }>
@ -181,7 +182,7 @@ export const guiOptionsScheme: {
}
if (choice === 'Enable') {
options.enabledResourcepack = name
await completeResourcepackPackInstall(name, name, false)
await completeResourcepackPackInstall(name, name, false, createNotificationProgressReporter())
return
}
if (choice === 'Uninstall') {