-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContextMenu.cs
More file actions
37 lines (35 loc) · 975 Bytes
/
ContextMenu.cs
File metadata and controls
37 lines (35 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System.Collections.Generic;
using BrowserTabs;
namespace Flow.Launcher.Plugin.BrowserTabs
{
public static class ContextMenu
{
internal static List<Result> GetBrowserTabContextMenu(BrowserTab tab)
{
var results = new List<Result>
{
new Result
{
Title = "Switch to tab",
IcoPath = Main.SwitchTabPath,
Action = c =>
{
tab.ActivateTab();
return true;
}
},
new Result
{
Title = "Close tab",
IcoPath = Main.CloseTabPath,
Action = c =>
{
tab.CloseTab();
return true;
}
}
};
return results;
}
}
}