Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
de9ecfd0
Unverified
Commit
de9ecfd0
authored
Dec 12, 2025
by
Eva H
Committed by
GitHub
Dec 12, 2025
Browse files
tidy up lint warnings on windows (#13430)
parent
95fdd8d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
17 deletions
+5
-17
app/cmd/app/app_darwin.go
app/cmd/app/app_darwin.go
+0
-7
app/cmd/app/app_windows.go
app/cmd/app/app_windows.go
+0
-5
app/dialog/dlgs_windows.go
app/dialog/dlgs_windows.go
+1
-1
app/wintray/eventloop.go
app/wintray/eventloop.go
+4
-4
No files found.
app/cmd/app/app_darwin.go
View file @
de9ecfd0
...
...
@@ -191,13 +191,6 @@ func LaunchNewApp() {
C
.
launchApp
(
appName
)
}
// Send a request to the main app thread to load a UI page
func
sendUIRequestMessage
(
path
string
)
{
p
:=
C
.
CString
(
path
)
defer
C
.
free
(
unsafe
.
Pointer
(
p
))
C
.
uiRequest
(
p
)
}
func
registerLaunchAgent
(
hasCompletedFirstRun
bool
)
{
// Remove any stale Login Item registrations
C
.
unregisterSelfFromLoginItem
()
...
...
app/cmd/app/app_windows.go
View file @
de9ecfd0
...
...
@@ -263,11 +263,6 @@ func createLoginShortcut() error {
return
nil
}
// Send a request to the main app thread to load a UI page
func
sendUIRequestMessage
(
path
string
)
{
wintray
.
SendUIRequestMessage
(
path
)
}
func
LaunchNewApp
()
{
}
...
...
app/dialog/dlgs_windows.go
View file @
de9ecfd0
...
...
@@ -15,7 +15,7 @@ const multiFileBufferSize = w32.MAX_PATH * 10
type
WinDlgError
int
func
(
e
WinDlgError
)
Error
()
string
{
return
fmt
.
Sprintf
(
"CommDlgExtendedError: %#x"
,
e
)
return
fmt
.
Sprintf
(
"CommDlgExtendedError: %#x"
,
int
(
e
)
)
}
func
err
()
error
{
...
...
app/wintray/eventloop.go
View file @
de9ecfd0
...
...
@@ -158,16 +158,16 @@ func (t *winTray) wndProc(hWnd windows.Handle, message uint32, wParam, lParam ui
case
uint32
(
UI_REQUEST_MSG_ID
)
:
// Requests for the UI must always come from the main event thread
l
:=
int
(
wParam
)
path
:=
unsafe
.
String
((
*
byte
)(
unsafe
.
Pointer
(
lParam
)),
l
)
path
:=
unsafe
.
String
((
*
byte
)(
unsafe
.
Pointer
(
lParam
)),
l
)
//nolint:govet,gosec
t
.
app
.
UIRun
(
path
)
case
WM_COPYDATA
:
// Handle URL scheme requests from other instances
if
lParam
!=
0
{
cds
:=
(
*
COPYDATASTRUCT
)(
unsafe
.
Pointer
(
lParam
))
if
cds
.
DwData
==
1
{
// Our identifier for URL scheme messages
cds
:=
(
*
COPYDATASTRUCT
)(
unsafe
.
Pointer
(
lParam
))
//nolint:govet,gosec
if
cds
.
DwData
==
1
{
// Our identifier for URL scheme messages
// Convert the data back to string
data
:=
make
([]
byte
,
cds
.
CbData
)
copy
(
data
,
(
*
[
1
<<
30
]
byte
)(
unsafe
.
Pointer
(
cds
.
LpData
))[
:
cds
.
CbData
:
cds
.
CbData
])
copy
(
data
,
(
*
[
1
<<
30
]
byte
)(
unsafe
.
Pointer
(
cds
.
LpData
))[
:
cds
.
CbData
:
cds
.
CbData
])
//nolint:govet,gosec
urlScheme
:=
string
(
data
)
handleURLSchemeRequest
(
urlScheme
)
lResult
=
1
// Return non-zero to indicate success
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment