[rst-commit] r166 - /redwax-signtext-macos/trunk/Redwax SignText/Redwax SignText/SignTextTabView.swift

rst-commit at redwax.eu rst-commit at redwax.eu
Mon Jul 1 11:43:09 CEST 2024


Author: minfrin at redwax.eu
Date: Mon Jul  1 11:42:41 2024
New Revision: 166

Log:
Bring signtext to the front when Firefox has finished sending the
message.

Modified:
    redwax-signtext-macos/trunk/Redwax SignText/Redwax SignText/SignTextTabView.swift

Modified: redwax-signtext-macos/trunk/Redwax SignText/Redwax SignText/SignTextTabView.swift
==============================================================================
--- redwax-signtext-macos/trunk/Redwax SignText/Redwax SignText/SignTextTabView.swift	(original)
+++ redwax-signtext-macos/trunk/Redwax SignText/Redwax SignText/SignTextTabView.swift	Mon Jul  1 11:42:41 2024
@@ -67,6 +67,11 @@
                     case .show:
                         /* we have our message, add a view the the tab */
                         self.tabs.append(signText)
+                        
+                        /* bring our application to the front */
+                        NSApp.setActivationPolicy(.regular)
+                        NSApplication.shared.activate(ignoringOtherApps: true)
+
                         break
 
                     case .ack:



More information about the rst-commit mailing list