mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2025-01-03 09:29:36 +00:00
Fix check wifi connection, update bug report and FUNDING
This commit is contained in:
parent
58af4325d0
commit
688b297faf
3 changed files with 17 additions and 18 deletions
10
.github/FUNDING.yml
vendored
10
.github/FUNDING.yml
vendored
|
@ -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']
|
||||
|
|
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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,23 +348,15 @@ export class DaemonService {
|
|||
|
||||
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<void>((resolve, reject) => {
|
||||
|
|
Loading…
Reference in a new issue