Skip to content

Commit 34b2b01

Browse files
committed
fix(launcher): Specify list max as 7
1 parent d46d92c commit 34b2b01

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/dialog_launcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class Launcher extends search.Search {
157157
this.options = windows.concat(this.options)
158158

159159
// Truncate excess items from the list
160-
this.options.splice(this.list_max());
160+
this.options.splice(this.list_max);
161161

162162
return this.options;
163163
};
@@ -312,7 +312,7 @@ export class Launcher extends search.Search {
312312
for (const window of ext.tab_list(Meta.TabList.NORMAL, null)) {
313313
if (show_all_workspaces || window.workspace_id() === active) {
314314
this.options.push(window_selection(ext, window, this.icon_size()))
315-
if (this.options.length == this.list_max()) break;
315+
if (this.options.length == this.list_max) break;
316316
}
317317
}
318318
}

src/dialog_search.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,7 @@ export class Search {
238238
return 34;
239239
}
240240

241-
list_max() {
242-
return 9;
243-
}
241+
get list_max() { return 7 }
244242

245243
reset() {
246244
this.clear();

0 commit comments

Comments
 (0)