Skip to content

Commit

Permalink
fix ahk auto-closing
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Jun 28, 2024
1 parent fe353a3 commit 8ed0a21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/background/modules/tray/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ pub fn get_tray_icons() -> Result<Vec<TrayIcon>> {
let is_win10 = is_windows_10();
for element in children {
let name = element.CurrentName()?.to_string();
if !name.is_empty() && (is_win10 || element.CurrentAutomationId()? == "NotifyItemIcon") {
if !name.is_empty() && (is_win10 || element.CurrentAutomationId()? == "NotifyItemIcon")
{
let registry = tray_from_registry.iter().find(|t| {
let trimmed = name.trim();
t.initial_tooltip == trimmed
Expand Down
2 changes: 1 addition & 1 deletion src/background/utils/ahk/mocks/seelen.lib.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ global seelen := "SEELEN_UI_EXE_PATH"

/** Close the AHK if app is crashed or forced to close */
CloseIfNotRunning() {
if ProcessExist("Seelen UI.exe") == 0 {
if ProcessExist("seelen-ui.exe") == 0 {
ExitApp()
}
SetTimer(CloseIfNotRunning, 1000)
Expand Down

0 comments on commit 8ed0a21

Please sign in to comment.