Skip to content

Commit

Permalink
Fix check wifi connection, update bug report and FUNDING
Browse files Browse the repository at this point in the history
  • Loading branch information
everoddandeven committed Oct 15, 2024
1 parent 58af432 commit 688b297
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
10 changes: 9 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
23 changes: 7 additions & 16 deletions src/app/core/services/daemon/daemon.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 (wifiConnected) {
console.log("Disabling sync ...");

if (!this.settings.noSync && !this.settings.syncOnWifi && await this.isWifiConnected()) {
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();

if (!wifiConnected) {
console.log("Enabling sync ...");
else if (!this.settings.noSync && !this.settings.syncOnWifi && !await this.isWifiConnected()) {
console.log("Enabling sync ...");

this.settings.noSync = false;
}
this.settings.noSync = false;
}

const startPromise = new Promise<void>((resolve, reject) => {
Expand Down

0 comments on commit 688b297

Please sign in to comment.