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
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
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:

View file

@ -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'
@ -349,24 +348,16 @@ export class DaemonService {
this.settings = customSettings ? customSettings : await this.getSettings();
if (!this.settings.noSync && !this.settings.syncOnWifi) {
const wifiConnected = await this.isWifiConnected();
if (wifiConnected) {
if (!this.settings.noSync && !this.settings.syncOnWifi && await this.isWifiConnected()) {
console.log("Disabling sync ...");
this.settings.noSync = true;
}
}
else if (!this.settings.noSync && !this.settings.syncOnWifi) {
const wifiConnected = await this.isWifiConnected();
if (!wifiConnected) {
else if (!this.settings.noSync && !this.settings.syncOnWifi && !await this.isWifiConnected()) {
console.log("Enabling sync ...");
this.settings.noSync = false;
}
}
const startPromise = new Promise<void>((resolve, reject) => {
window.electronAPI.onMonerodStarted((event: any, started: boolean) => {