Add "new window" option to the dock menu (#12067)
Fixes: #11651 Co-Authored-By: versecafe <147033096+versecafe@users.noreply.github.com> Release Notes: - Added a "New Window" item to the dock menu ([#11651](https://github.com/zed-industries/zed/issues/11651)). --------- Co-authored-by: versecafe <147033096+versecafe@users.noreply.github.com>
This commit is contained in:
parent
1732ea95c2
commit
42ea2be1b4
7 changed files with 66 additions and 5 deletions
|
@ -34,7 +34,7 @@ use xkbcommon::xkb::{self, Keycode, Keysym, State};
|
|||
use crate::platform::linux::wayland::WaylandClient;
|
||||
use crate::{
|
||||
px, Action, AnyWindowHandle, BackgroundExecutor, ClipboardItem, CosmicTextSystem, CursorStyle,
|
||||
DisplayId, ForegroundExecutor, Keymap, Keystroke, LinuxDispatcher, Menu, Modifiers,
|
||||
DisplayId, ForegroundExecutor, Keymap, Keystroke, LinuxDispatcher, Menu, MenuItem, Modifiers,
|
||||
PathPromptOptions, Pixels, Platform, PlatformDisplay, PlatformInputHandler, PlatformTextSystem,
|
||||
PlatformWindow, Point, PromptLevel, Result, SemanticVersion, Size, Task, WindowAppearance,
|
||||
WindowOptions, WindowParams,
|
||||
|
@ -375,6 +375,7 @@ impl<P: LinuxClient + 'static> Platform for P {
|
|||
|
||||
// todo(linux)
|
||||
fn set_menus(&self, menus: Vec<Menu>, keymap: &Keymap) {}
|
||||
fn set_dock_menu(&self, menu: Vec<MenuItem>, keymap: &Keymap) {}
|
||||
|
||||
fn local_timezone(&self) -> UtcOffset {
|
||||
UtcOffset::UTC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue