Skip to content

Commit

Permalink
style: apply code format
Browse files Browse the repository at this point in the history
  • Loading branch information
CleoMenezesJr committed Feb 10, 2023
1 parent d389a4b commit 7fb3e6f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
8 changes: 3 additions & 5 deletions autoActivities.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,9 @@ var AutoActivities = GObject.registerClass(
windows = windows.filter((window) => !window.meta_window.minimized);

if (windows.length < 1) {
if (this._settings.get_boolean("show-apps"))
Main.overview.showApps();
else
Main.overview.show();
}
if (this._settings.get_boolean("show-apps")) Main.overview.showApps();
else Main.overview.show();
}
});
}

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Auto Activities",
"description": "Show activities overview when there are no windows, or hide it when there are new windows.\n\nThis extension is a fork of the Auto Activities extension, its former owner transferred its repository to me.",
"uuid": "[email protected]",
"shell-version": [ "42", "43" ],
"shell-version": ["42", "43"],
"url": "https://github.com/CleoMenezesJr/auto-activities",
"original-author": "[email protected]",
"version": 15,
Expand Down
8 changes: 1 addition & 7 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,7 @@ function buildPrefsWidget() {

let showApps = builder.get_object("ShowAppsSwitch");
showApps.set_active(settings.get_boolean("show-apps"));
settings.bind(
"show-apps",
showApps,
"active",
Gio.SettingsBindFlags.DEFAULT
);
settings.bind("show-apps", showApps, "active", Gio.SettingsBindFlags.DEFAULT);

return builder.get_object("MainWidget");
}

1 change: 0 additions & 1 deletion prefs.ui
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,3 @@
</child>
</object>
</interface>

0 comments on commit 7fb3e6f

Please sign in to comment.