Skip to content

Commit

Permalink
fix: 非 Windows 系统的函数定义
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed May 22, 2024
1 parent 29df8b9 commit 242d258
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions sys/safelunch_other.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//go:build !windows
// +build !windows

package sys

// RunningByDoubleClick 是否通过双击运行
func RunningByDoubleClick() bool {
return true
}

// NoMoreDoubleClick 提示不要双击运行,并生成启动脚本
func NoMoreDoubleClick() error {
return nil
}

// toHighDPI tries to raise DPI awareness context to DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED
func toHighDPI() {}

// BoxW of Win32 API. Check https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxw for more detail.
func boxW() {}

// GetConsoleWindows retrieves the window handle used by the console associated with the calling process.
func getConsoleWindows() {
return
}

0 comments on commit 242d258

Please sign in to comment.