Skip to content

Commit

Permalink
Changes to test menu on Windows (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
rat-moonshine committed Jun 24, 2021
1 parent 9172d83 commit c41d7ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion GBAuth/src/actionScripts/ui/GBAuthMenuManager.as
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ package actionScripts.ui
import actionScripts.ui.menu.MenuItem;
import actionScripts.views.others.ViewAboutGBAuth;

import flash.desktop.NativeApplication;

import flash.display.NativeMenu;
import flash.display.NativeWindow;
import flash.display.Screen;
import flash.events.Event;
import flash.ui.Keyboard;
Expand Down Expand Up @@ -39,7 +42,14 @@ package actionScripts.ui
var nm:NativeMenu = new NativeMenu();
addMenus(rootMenu, nm);

FlexGlobals.topLevelApplication.nativeApplication.menu = nm;
if (NativeApplication.supportsMenu)
{
FlexGlobals.topLevelApplication.nativeApplication.menu = nm;
}
else if (NativeWindow.supportsMenu)
{
FlexGlobals.topLevelApplication.nativeWindow.menu = nm;
}
}

private function onAboutMenuClick(event:Event):void
Expand Down
Binary file modified GBAuthHaxe/bin/flash/bin/GBAuthHaxe.swc
Binary file not shown.

0 comments on commit c41d7ac

Please sign in to comment.