diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 5166439..dd320e6 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,4 +1,12 @@ # These are supported funding model platforms 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'] diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 6bbeeef..6835297 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -7,7 +7,7 @@ body: - type: markdown attributes: 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 attributes: diff --git a/src/app/core/services/daemon/daemon.service.ts b/src/app/core/services/daemon/daemon.service.ts index 10468be..c9134f8 100644 --- a/src/app/core/services/daemon/daemon.service.ts +++ b/src/app/core/services/daemon/daemon.service.ts @@ -80,7 +80,6 @@ import { MethodNotFoundError } from '../../../../common/error/MethodNotFoundErro import { openDB, IDBPDatabase } from "idb" import { PeerInfo, TxPool } from '../../../../common'; import { MoneroInstallerService } from '../monero-installer/monero-installer.service'; -import { error } from 'console'; @Injectable({ providedIn: 'root' @@ -348,24 +347,16 @@ export class DaemonService { console.log("Starting daemon"); this.settings = customSettings ? customSettings : await this.getSettings(); - - if (!this.settings.noSync && !this.settings.syncOnWifi) { - const wifiConnected = await this.isWifiConnected(); + + if (!this.settings.noSync && !this.settings.syncOnWifi && await this.isWifiConnected()) { + console.log("Disabling sync ..."); - if (wifiConnected) { - console.log("Disabling sync ..."); - - this.settings.noSync = true; - } + this.settings.noSync = true; } - else if (!this.settings.noSync && !this.settings.syncOnWifi) { - const wifiConnected = await this.isWifiConnected(); + else if (!this.settings.noSync && !this.settings.syncOnWifi && !await this.isWifiConnected()) { + console.log("Enabling sync ..."); - if (!wifiConnected) { - console.log("Enabling sync ..."); - - this.settings.noSync = false; - } + this.settings.noSync = false; } const startPromise = new Promise((resolve, reject) => {