Tags: peterdsp/PromptBar
Tags
🔧 Fix: Keep Popover Open When Always On Top is Enabled • Updated popover behavior: • When alwaysOnTop is enabled, the popover behavior is now .applicationDefined instead of .transient, preventing it from closing when clicking outside. • Added updatePopoverBehavior() to dynamically adjust the behavior based on alwaysOnTop. • Ensured window stays on top when losing focus: • applicationDidResignActive(_:) now keeps the popover open and orders it front regardless. • Removed unnecessary popover.contentViewController?.view.window?.level = .floating to avoid conflicts with updateWindowLevel(). • Refactored AI Chat selection logic in MacMistralPopup: • Simplified how initialAddress is determined from chatOptions. • Ensured WebView preloads correctly before displaying UI. • UI Improvements: • “Always on Top” menu item state now updates dynamically. • Cleaned up redundant size logic in loadView() to use a default frame. ✅ The popover now remains open when alwaysOnTop is enabled, even when the app loses focus.
Add DeepSeek Chat Integration and Update Version to 1.2.1 • Integrated DeepSeek Chat into the app, providing advanced conversational AI capabilities. • Updated AI chat order in the menubar to include DeepSeek alongside Mistral, ChatGPT, and Gemini. • Bumped marketing version from 1.2 to 1.2.1 in the project configuration files. • Ensured smooth functionality of the new chat option through proper URL configuration. • Enhanced user experience with expanded AI model selection.
Refactor popup handling and project structure in MacMistral • Added PopoverManager to centralize popover handling logic. • Implemented MacMistralPopup to dynamically load and manage AI chat content. • Updated AppDelegate to delegate responsibilities to PopoverManager and MenuManager. • Improved project organization by separating concerns into respective files. • Included utility enhancements in WebViewHelper for better web session management. • Added main.swift for explicit app entry point definition. • Fixed showAbout logic and ensured status bar button toggles the popover correctly.
PreviousNext