mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
✨ Add refresh button (#24)
By pressing Command-R while the menu is open, the information about the current PHP installation will be refreshed. You'll need to open the menu again, but now it will contain up-to-date information. You could also just press the menu item, of course.
This commit is contained in:
@ -109,6 +109,8 @@ class StatusMenu : NSMenu {
|
||||
for phpExtension in App.phpInstall!.extensions {
|
||||
self.addExtensionItem(phpExtension)
|
||||
}
|
||||
|
||||
self.addItem(NSMenuItem(title: "mi_php_refresh".localized, action: #selector(MainMenu.updatePhpVersionInStatusBar), keyEquivalent: "r"))
|
||||
}
|
||||
|
||||
private func addExtensionItem(_ phpExtension: PhpExtension) {
|
||||
|
@ -25,6 +25,7 @@
|
||||
"mi_restart_specific" = "Restart specific service";
|
||||
"mi_restart_all_services" = "Restart all services";
|
||||
"mi_force_load_latest" = "Force load latest PHP version";
|
||||
"mi_php_refresh" = "Refresh information";
|
||||
|
||||
"mi_configuration" = "Configuration";
|
||||
"mi_limits" = "Limits Configuration";
|
||||
|
Reference in New Issue
Block a user