Skip to content

Commit

Permalink
Features:
Browse files Browse the repository at this point in the history
- Fixed bug white screen from update 1.7.2 to 1.7.4
  • Loading branch information
Mauro Mazzocchetti committed Aug 11, 2022
1 parent 6aa9af7 commit eedc5fb
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variables:
IMAGE_VERSION: "1.7.4"
IMAGE_VERSION: "1.7.5"
GIT_DEPTH: '3'
SIMPLECOV: 'true'
RUST_BACKTRACE: '1'
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crawfish",
"version": "1.7.4",
"version": "1.7.5",
"private": false,
"author": "drakonkat",
"description": "Innovative torrent client",
Expand Down
2 changes: 1 addition & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {autoUpdater} = require("electron-updater")

let mainWindow;
const createWindow = () => {
let title = "CrawFish - 1.7.3"
let title = "CrawFish - 1.7.5"
let port = 3000;
mainWindow = new BrowserWindow({
width: 1280,
Expand Down
23 changes: 16 additions & 7 deletions routes/classes/ConfigStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,22 @@ class ConfigStorage {
...result.opts,
tracker: {...result.opts.tracker, wrtc: wrtc}
})
await this.setSpeedConf({
...result.speed,
download: result.speed.download || result.opts.downloadLimit,
upload: result.speed.upload || result.opts.uploadLimit,
alternativeTimeStart: result.speed.alternativeTimeStart ? new Date(Date.parse(result.speed.alternativeTimeStart)) : null,
alternativeTimeEnd: result.speed.alternativeTimeEnd ? new Date(Date.parse(result.speed.alternativeTimeEnd)) : null,
})
if (result.speed) {
await this.setSpeedConf({
...result.speed,
download: result.speed.download || result.opts.downloadLimit,
upload: result.speed.upload || result.opts.uploadLimit,
alternativeTimeStart: result.speed.alternativeTimeStart ? new Date(Date.parse(result.speed.alternativeTimeStart)) : null,
alternativeTimeEnd: result.speed.alternativeTimeEnd ? new Date(Date.parse(result.speed.alternativeTimeEnd)) : null,
})
} else {
await this.setSpeedConf({
download: result.opts.downloadLimit,
upload: result.opts.uploadLimit,
alternativeTimeStart: null,
alternativeTimeEnd: null,
})
}
// Verify old settings method
{
let torrents = JSON.parse(result[TORRENTS_KEY] || "[]");
Expand Down

0 comments on commit eedc5fb

Please sign in to comment.