Исправление некликабельной кнопки kernel update
This commit is contained in:
@@ -20,7 +20,8 @@ export function UpdateAlert(props : UpdateAlertProps) {
|
||||
updateStatus,
|
||||
downloadLastApplicationUpdate,
|
||||
restartAppForUpdateApply,
|
||||
checkForUpdates
|
||||
checkForUpdates,
|
||||
updateServer
|
||||
} = useUpdater();
|
||||
|
||||
useEffect(() => {
|
||||
@@ -34,7 +35,7 @@ export function UpdateAlert(props : UpdateAlertProps) {
|
||||
<Button h={45} leftSection={
|
||||
<IconRefresh size={15}/>
|
||||
} onClick={() => {
|
||||
window.shell.openExternal(kernelUpdateUrl);
|
||||
window.shell.openExternal(updateServer + kernelUpdateUrl);
|
||||
}} fullWidth variant={'gradient'} gradient={{ from: 'red', to: 'orange', deg: 233 }} radius={radius}>
|
||||
Kernel update required
|
||||
</Button>
|
||||
|
||||
@@ -39,6 +39,7 @@ export interface UpdateContextValue {
|
||||
checkForUpdates: () => void;
|
||||
downloadLastApplicationUpdate: () => void;
|
||||
restartAppForUpdateApply: () => void;
|
||||
updateServer: string | null;
|
||||
}
|
||||
|
||||
export const UpdateProviderContext = createContext<UpdateContextValue | null>(null);
|
||||
@@ -167,7 +168,8 @@ export function UpdateProvider(props: UpdateProviderProps) {
|
||||
kernelUpdateUrl,
|
||||
checkForUpdates,
|
||||
downloadLastApplicationUpdate,
|
||||
restartAppForUpdateApply
|
||||
restartAppForUpdateApply,
|
||||
updateServer: updateServerRef.current
|
||||
}}>
|
||||
{props.children}
|
||||
</UpdateProviderContext.Provider>
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
export const APP_VERSION = "1.0.2";
|
||||
export const APP_VERSION = "1.0.3";
|
||||
export const CORE_MIN_REQUIRED_VERSION = "1.4.9";
|
||||
|
||||
export const RELEASE_NOTICE = `
|
||||
**Update v1.0.2** :emoji_1f631:
|
||||
- Support multiple file downloads
|
||||
- Fix fallback after boot loading
|
||||
- Fix corss-chat reading messages
|
||||
- Support sync attachments on other devices
|
||||
- Fix UI bugs
|
||||
**Update v1.0.3** :emoji_1f631:
|
||||
- Fix kernel update alert
|
||||
`;
|
||||
Reference in New Issue
Block a user