ide: In MacOS now can open another instance using dock menu

git-svn-id: svn://ultimatepp.org/upp/trunk@12718 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-01-25 18:51:46 +00:00
parent 7dbe5b2aa9
commit 2f9961809d
2 changed files with 10 additions and 2 deletions

View file

@ -562,10 +562,10 @@ void Ide::MakeIcon() {
Draw& mdraw = idraw.Alpha();
idraw.DrawImage(0, 0, li);
mdraw.DrawImage(0, 0, li, White);
int fh = DPI(12);
int fh = DPI(13);
Size sz;
Font font;
while(fh > 5) {
while(fh > 8) {
font = StdFont(fh);
sz = GetTextSize(mp, font);
sz.cx = min(sz.cx + 4, isz.cx);

View file

@ -656,6 +656,14 @@ Ide::Ide()
editfile_repo = NOT_REPO_DIR;
auto_rescan = auto_check = true;
#ifdef PLATFORM_COCOA
WhenDockMenu = [=](Bar& bar) {
bar.Add("New Window", [=] {
CreateHost(false, false)->Launch(GetExeFilePath() + " --nosplash");
});
};
#endif
}
Ide::~Ide()