Skip to content

Commit

Permalink
fixed regression with back to my xcreds
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Aug 16, 2022
1 parent 6cedc60 commit ff3dee8
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 22 deletions.
10 changes: 6 additions & 4 deletions XCreds Login Overlay/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,19 @@ class AppDelegate: NSObject, NSApplicationDelegate {
*/
func applicationDidFinishLaunching(_ aNotification: Notification) {




var statusWindowRect=window.frame
let screenRect = NSScreen.screens[0].visibleFrame


statusWindowRect.size.width=screenRect.size.width
statusWindowRect.origin=screenRect.origin;
window.setFrame(statusWindowRect, display: true, animate: false)
window.makeKeyAndOrderFront(self)
window.canBecomeVisibleWithoutLogin=true
window.hidesOnDeactivate=false
window.isOpaque=false
window .orderFront(self)



}

Expand Down
2 changes: 1 addition & 1 deletion XCreds Login Overlay/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@
</items>
<point key="canvasLocation" x="200" y="121"/>
</menu>
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" hasShadow="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="ewK-Yh-gWi" customClass="TCSXCredsLoginOverlayWindow" customModule="XCreds_Login_Overlay" customModuleProvider="target">
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" hasShadow="NO" releasedWhenClosed="NO" frameAutosaveName="" animationBehavior="default" id="ewK-Yh-gWi" customClass="TCSXCredsLoginOverlayWindow" customModule="XCreds_Login_Overlay" customModuleProvider="target">
<windowStyleMask key="styleMask" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="25" y="25" width="872" height="109"/>
Expand Down
23 changes: 23 additions & 0 deletions XCreds/Assets.xcassets/refresh symbol.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"images" : [
{
"filename" : "refresh symbol~universal@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "refresh symbol~universal@2x.png",
"scale" : "2x",
"idiom" : "universal"
},
{
"scale" : "3x",
"idiom" : "universal",
"filename" : "refresh symbol~universal@3x.png"
}
]
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions XCredsLoginPlugIn/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LogFileName</key>
<string>xcreds.log</string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions XCredsLoginPlugIn/Mechanisms/XCredsLoginDone.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
//


/// Mechanism to create a local user and homefolder.
class XCredsLoginDone: XCredsBaseMechanism {

override init(mechanism: UnsafePointer<MechanismRecord>) {
super.init(mechanism: mechanism)

}

@objc override func run() {
TCSLogWithMark("trying hide progress")

NotificationCenter.default.post(name: NSNotification.Name("hideProgress"), object: nil)
allowLogin()

}}
2 changes: 1 addition & 1 deletion build_resources/buildscripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ cp -R "${temp_folder}/${PRODUCT_NAME}.xcarchive/dSYMs/" "${PROJECT_FOLDER}/produ

cp -Rv "${SRC_PATH}/build_resources/" "${BUILD_FOLDER}"

exit

/Users/tperfitt/Documents/Projects/build/build.sh "${BUILD_FOLDER}" "${temp_folder}" "${PRODUCT_NAME}" "${BUILD_FOLDER}/XCreds.app" "${SCRIPT_FOLDER}/build_post.sh"
3 changes: 3 additions & 0 deletions run_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

exit 0
12 changes: 6 additions & 6 deletions xCreds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3255;
CURRENT_PROJECT_VERSION = 3259;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -916,7 +916,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3255;
CURRENT_PROJECT_VERSION = 3259;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -975,7 +975,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3255;
CURRENT_PROJECT_VERSION = 3259;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1005,7 +1005,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3255;
CURRENT_PROJECT_VERSION = 3259;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1148,7 +1148,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3255;
CURRENT_PROJECT_VERSION = 3259;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -1177,7 +1177,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3255;
CURRENT_PROJECT_VERSION = 3259;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -103,32 +103,32 @@
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "4F2F4120-9B82-4BEE-83F1-B36DB47CA867"
uuid = "4BFCBC0A-7DBF-4826-88A5-B9DE4B573085"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "XCreds/MainController.swift"
filePath = "XCreds/Window+ForceToFront.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "20"
endingLineNumber = "20"
landmarkName = "run()"
startingLineNumber = "14"
endingLineNumber = "14"
landmarkName = "forceToFrontAndFocus(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "4BFCBC0A-7DBF-4826-88A5-B9DE4B573085"
uuid = "0A18830B-F7CC-43A4-8D7D-D5F67784D64C"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "XCreds/Window+ForceToFront.swift"
filePath = "XCreds Login Overlay/AppDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "14"
endingLineNumber = "14"
landmarkName = "forceToFrontAndFocus(_:)"
startingLineNumber = "13"
endingLineNumber = "13"
landmarkName = "main()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
Expand Down

0 comments on commit ff3dee8

Please sign in to comment.