mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
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:
parent
7dbe5b2aa9
commit
2f9961809d
2 changed files with 10 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue