mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-22 13:40:06 +00:00
Remove initial setup window
Now that we only copy a few json files for the initial setup, the process is so fast the progress window isn't really needed anymore
This commit is contained in:
parent
4a465ca689
commit
97144aad59
Binary file not shown.
Before Width: | Height: | Size: 72 KiB |
10
index.js
10
index.js
@ -28,18 +28,9 @@ var serversPath = path.join(userData, "/servers.json");
|
|||||||
var versionsPath = path.join(userData, "/versions.json");
|
var versionsPath = path.join(userData, "/versions.json");
|
||||||
|
|
||||||
function initialSetup(firstTime) {
|
function initialSetup(firstTime) {
|
||||||
// Display a small window to inform the user that the app is working
|
|
||||||
setupWindow = new BrowserWindow({
|
|
||||||
width: 275,
|
|
||||||
height: 450,
|
|
||||||
resizable: false,
|
|
||||||
center: true,
|
|
||||||
frame: false,
|
|
||||||
});
|
|
||||||
if (!firstTime) {
|
if (!firstTime) {
|
||||||
// migration from pre-1.4
|
// migration from pre-1.4
|
||||||
// Back everything up, just in case
|
// Back everything up, just in case
|
||||||
setupWindow.loadUrl("file://" + __dirname + "/initial-setup.html");
|
|
||||||
fs.copySync(configPath, configPath + ".bak");
|
fs.copySync(configPath, configPath + ".bak");
|
||||||
fs.copySync(serversPath, serversPath + ".bak");
|
fs.copySync(serversPath, serversPath + ".bak");
|
||||||
fs.copySync(versionsPath, versionsPath + ".bak");
|
fs.copySync(versionsPath, versionsPath + ".bak");
|
||||||
@ -57,7 +48,6 @@ function initialSetup(firstTime) {
|
|||||||
fs.copySync(path.join(__dirname, "/defaults/config.json"), configPath);
|
fs.copySync(path.join(__dirname, "/defaults/config.json"), configPath);
|
||||||
|
|
||||||
console.log("JSON files copied.");
|
console.log("JSON files copied.");
|
||||||
setupWindow.destroy();
|
|
||||||
showMainWindow();
|
showMainWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>OpenFusion: Initial Setup</title>
|
|
||||||
</head>
|
|
||||||
<body
|
|
||||||
style="
|
|
||||||
overflow: hidden;
|
|
||||||
background-color: #000;
|
|
||||||
user-select: none;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<center>
|
|
||||||
<div>
|
|
||||||
<img src="assets/img/of-3.png" width="256" />
|
|
||||||
<div>
|
|
||||||
<img src="assets/img/spinner.gif" width="50px" />
|
|
||||||
</div>
|
|
||||||
<div style="margin-top: 15px">
|
|
||||||
<p
|
|
||||||
style="
|
|
||||||
text-shadow: 1px 1px 8px #4349c4;
|
|
||||||
color: #4a76b7;
|
|
||||||
font-size: 18px;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont,
|
|
||||||
'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
||||||
'Noto Sans', sans-serif, 'Apple Color Emoji',
|
|
||||||
'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
||||||
'Noto Color Emoji';
|
|
||||||
"
|
|
||||||
>
|
|
||||||
OpenFusion is setting up...<br />Please wait - this
|
|
||||||
should take <br />less than a minute.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</center>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user