search
This commit is contained in:
1 parent
10ffe765b0
commit
d42e24be81
10 files changed
+350
-394
No files matched your search
@@ -6,8 +6,8 @@ ShellRoot {
|
||||
id: shell
|
||||
|
||||
property bool open: false
|
||||
// Focus the name field once the carousel opens.
|
||||
property bool renameOnOpen: false
|
||||
// Open the search bar once the carousel opens.
|
||||
property bool searchOnOpen: false
|
||||
// Open the window loop on the focused workspace once the carousel opens.
|
||||
property bool openWindowsOnOpen: false
|
||||
|
||||
@@ -35,15 +35,15 @@ ShellRoot {
|
||||
shell.open = false;
|
||||
}
|
||||
|
||||
function openWith(rename: bool, windows: bool): void {
|
||||
shell.renameOnOpen = rename;
|
||||
function openWith(search: bool, windows: bool): void {
|
||||
shell.searchOnOpen = search;
|
||||
shell.openWindowsOnOpen = windows;
|
||||
// Already open, so there is no fresh open to wait for.
|
||||
if (shell.open) {
|
||||
if (windows)
|
||||
gotoView.expandWindows(false);
|
||||
if (rename)
|
||||
gotoView.enterRename();
|
||||
if (search)
|
||||
gotoView.enterSearch();
|
||||
return;
|
||||
}
|
||||
shell.open = true;
|
||||
@@ -67,7 +67,7 @@ ShellRoot {
|
||||
shell.openWith(false, true);
|
||||
}
|
||||
|
||||
function openWorkspaceRename(): void {
|
||||
function openSearch(): void {
|
||||
shell.openWith(true, false);
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ ShellRoot {
|
||||
compositor: compositor
|
||||
theme: theme
|
||||
config: config
|
||||
renameOnOpen: shell.renameOnOpen
|
||||
searchOnOpen: shell.searchOnOpen
|
||||
openWindowsOnOpen: shell.openWindowsOnOpen
|
||||
onRequestClose: shell.closeAll()
|
||||
onRequestBack: shell.closeAll()
|
||||
|
||||
Reference in new issue
Block a user