mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
reset useless change
This commit is contained in:
@@ -13,9 +13,7 @@ ipcMain.on("download-update", async (event, request: IpcRequest<void>) => {
|
||||
|
||||
updaterService
|
||||
.downloadUpdate()
|
||||
.then(res => {
|
||||
utilsService.ipcSend(request.responceChannel, { success: res });
|
||||
})
|
||||
.then(res => utilsService.ipcSend(request.responceChannel, { success: res }))
|
||||
.catch(() => utilsService.ipcSend(request.responceChannel, { success: false }));
|
||||
});
|
||||
|
||||
|
||||
@@ -3,10 +3,8 @@ import { AppWindow } from "shared/models/window-manager/app-window.model";
|
||||
import { IpcService } from "../services/ipc.service";
|
||||
import { from } from "rxjs";
|
||||
import { BrowserWindow, ipcMain } from "electron";
|
||||
import { AutoUpdaterService } from "../services/auto-updater.service";
|
||||
|
||||
const ipc = IpcService.getInstance();
|
||||
const autoUpdaterService = AutoUpdaterService.getInstance();
|
||||
|
||||
// Native windows control, do not pass through IPC service
|
||||
ipcMain.on("close-window", async (event) => {
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
|
||||
.content * {
|
||||
all: revert;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { CSSProperties } from "react";
|
||||
|
||||
export default function PatreonIcon(props: { className?: string; style?: CSSProperties }) {
|
||||
return (
|
||||
<svg className={props.className} style={props.style} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160">
|
||||
<svg className={props.className} style={props.style} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 180">
|
||||
<path fill="white" d="M108.8135992 26.06720125c-26.468266 0-48.00213212 21.53066613-48.00213212 47.99733213 0 26.38653268 21.53386613 47.85426547 48.00213213 47.85426547 26.38639937 0 47.8530655-21.4677328 47.8530655-47.85426547 0-26.466666-21.46666613-47.99733213-47.85306547-47.99733213" />
|
||||
<path fill="#052a49" d="M23.333335 153.93333178V26.0666679h23.46666576v127.8666639z" />
|
||||
</svg>
|
||||
|
||||
@@ -21,7 +21,6 @@ export default function Launcher() {
|
||||
useEffect(() => {
|
||||
updaterService.isUpdateAvailable().then(available => {
|
||||
if (!available) {
|
||||
|
||||
return windowService.openThenCloseAll("index.html");
|
||||
}
|
||||
setText("auto-update.downloading");
|
||||
|
||||
Reference in New Issue
Block a user