Skip to content

Commit

Permalink
Fix attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
sakithb committed Aug 29, 2021
1 parent 0e6df05 commit e1a75d4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ function init() {}

function buildPrefsWidget() {
let settings = ExtensionUtils.getSettings();
let scrolledWindow = new Gtk.ScrolledWindow({
max_content_height: 600,
});
let widgetPrefs;
if (shellVersion < 40) {
widgetPrefs = new Gtk.Grid({
Expand Down Expand Up @@ -490,10 +487,15 @@ function buildPrefsWidget() {
playbackActions[widget.get_active()]
);
});
if (shellVersion < 40) {
scrolledWindow.add(widgetPrefs);
} else {
scrolledWindow.set_child(widgetPrefs);
}
// if (shellVersion < 40) {
// } else {
// scrolledWindow.set_child(widgetPrefs);
// }

let scrolledWindow = new Gtk.ScrolledWindow({
max_content_height: 600,
child: widgetPrefs,
});

return scrolledWindow;
}

0 comments on commit e1a75d4

Please sign in to comment.