Skip to content

Commit

Permalink
fixed focus issue
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Feb 24, 2023
1 parent 339a66e commit 992512b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions XCreds Login Overlay/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
window.hidesOnDeactivate=false
window.isOpaque=false
window.level = .modalPanel
Timer.scheduledTimer(withTimeInterval: 3, repeats: true) { timer in
NSApp.activate(ignoringOtherApps: true)
self.window.orderFrontRegardless()
}
// Timer.scheduledTimer(withTimeInterval: 3, repeats: true) { timer in
// NSApp.activate(ignoringOtherApps: true)
// self.window.orderFrontRegardless()
// }
NSApp.activate(ignoringOtherApps: true)
window.orderFrontRegardless()
if let ud = UserDefaults(suiteName: "com.twocanoes.xcreds"), let customTextString = ud.value(forKey: "cloudLoginText") {
Expand Down
2 changes: 1 addition & 1 deletion XCredsLoginPlugIn/LoginWindow/LoginWebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class LoginWebViewController: WebViewController {
// BackgroundImage
if let imagePathURL = UserDefaults.standard.string(forKey: PrefKeys.loginWindowBackgroundImageURL.rawValue), let image = NSImage.imageFromPathOrURL(pathURLString: imagePathURL){
TCSLogWithMark("background path is \(imagePathURL)")
image.size=screenRect.size
image.size=screenRect.size
self.backgroundImageView.image=image
self.backgroundImageView.imageScaling = .scaleProportionallyUpOrDown

Expand Down
12 changes: 6 additions & 6 deletions xCreds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3432;
CURRENT_PROJECT_VERSION = 3435;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -940,7 +940,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3432;
CURRENT_PROJECT_VERSION = 3435;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1001,7 +1001,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3432;
CURRENT_PROJECT_VERSION = 3435;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1033,7 +1033,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3432;
CURRENT_PROJECT_VERSION = 3435;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1178,7 +1178,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3432;
CURRENT_PROJECT_VERSION = 3435;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1209,7 +1209,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3432;
CURRENT_PROJECT_VERSION = 3435;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
Binary file not shown.

0 comments on commit 992512b

Please sign in to comment.