Skip to content

Commit

Permalink
osx: Bring Meld to the front
Browse files Browse the repository at this point in the history
  • Loading branch information
yousseb committed Dec 8, 2018
1 parent 7b8f313 commit 1ad3090
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meld/meldwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

is_native = False
try:
from Foundation import NSUserDefaults
from Cocoa import NSApp
is_native = True
except:
pass
Expand Down Expand Up @@ -293,6 +293,7 @@ def osx_menu_setup(self, widget, event, callback_data=None):
self.macapp.insert_app_menu_item(prefs_item, 2)
self.macapp.insert_app_menu_item(Gtk.SeparatorMenuItem(), 3)
#self.macapp.ready()
NSApp.activateIgnoringOtherApps_(True)
self.osx_ready = True

def _on_recentmenu_map(self, recentmenu):
Expand Down

0 comments on commit 1ad3090

Please # to comment.