Fix check wifi connection, update bug report and FUNDING

This commit is contained in:
everoddandeven 2024-10-15 18:48:14 +02:00
parent 58af4325d0
commit 688b297faf
3 changed files with 17 additions and 18 deletions

10
.github/FUNDING.yml vendored
View file

@ -1,4 +1,12 @@
# These are supported funding model platforms # These are supported funding model platforms
github: everoddandeven github: everoddandeven
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] patreon: # Replace with patreon user id
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://github.com/everoddandeven/monerod-gui?tab=readme-ov-file#donating'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

View file

@ -7,7 +7,7 @@ body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Please make sure to [search for existing issues](https://github.com/maximegris/angular-electron/issues) before filing a new one! Please make sure to [search for existing issues](https://github.com/everoddandeven/monerod-gui/issues) before filing a new one!
- type: textarea - type: textarea
attributes: attributes:

View file

@ -80,7 +80,6 @@ import { MethodNotFoundError } from '../../../../common/error/MethodNotFoundErro
import { openDB, IDBPDatabase } from "idb" import { openDB, IDBPDatabase } from "idb"
import { PeerInfo, TxPool } from '../../../../common'; import { PeerInfo, TxPool } from '../../../../common';
import { MoneroInstallerService } from '../monero-installer/monero-installer.service'; import { MoneroInstallerService } from '../monero-installer/monero-installer.service';
import { error } from 'console';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
@ -348,24 +347,16 @@ export class DaemonService {
console.log("Starting daemon"); console.log("Starting daemon");
this.settings = customSettings ? customSettings : await this.getSettings(); this.settings = customSettings ? customSettings : await this.getSettings();
if (!this.settings.noSync && !this.settings.syncOnWifi) { if (!this.settings.noSync && !this.settings.syncOnWifi && await this.isWifiConnected()) {
const wifiConnected = await this.isWifiConnected(); console.log("Disabling sync ...");
if (wifiConnected) { this.settings.noSync = true;
console.log("Disabling sync ...");
this.settings.noSync = true;
}
} }
else if (!this.settings.noSync && !this.settings.syncOnWifi) { else if (!this.settings.noSync && !this.settings.syncOnWifi && !await this.isWifiConnected()) {
const wifiConnected = await this.isWifiConnected(); console.log("Enabling sync ...");
if (!wifiConnected) { this.settings.noSync = false;
console.log("Enabling sync ...");
this.settings.noSync = false;
}
} }
const startPromise = new Promise<void>((resolve, reject) => { const startPromise = new Promise<void>((resolve, reject) => {