Skip to content

Commit

Permalink
Merge pull request #158 from c84c/defaultgw_typo
Browse files Browse the repository at this point in the history
fix typo in prefs "defaultGW" const
  • Loading branch information
hedayaty authored May 14, 2023
2 parents 3272732 + 31a5574 commit 7761594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion net_speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,14 @@ var NetSpeed = class NetSpeed {
this._saving = 0;
this._load();

this._updateDefaultGw();

this._changed = this._setting.connect('changed', Lang.bind(this, this._reload));
this._timerid = Mainloop.timeout_add(this.timer, Lang.bind(this, this._update));
this._status_icon = new NetSpeedStatusIcon.NetSpeedStatusIcon(this);
let placement = this._setting.get_string('placement');
Panel.addToStatusArea('netspeed', this._status_icon, 0, placement);
this._updateDefaultGw();


}

Expand Down
2 changes: 1 addition & 1 deletion prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const App = class NetSpeed_App {
let active = 0;
if (activeDev == "all") {
active = 0;
} else if (activeDev == "defaultGw") {
} else if (activeDev == "defaultGW") {
active = 1;
} else {
for (let i = 0; i < this._devices.length; ++i) {
Expand Down

0 comments on commit 7761594

Please sign in to comment.