Skip to content

Commit 4ed34dd

Browse files
committed
Option for window to stay on top
1 parent 28eeb7a commit 4ed34dd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

audioswitcher.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ lastDevice = devices1
66
lastVolume = volumes1
77
devicesHeadline = Devices
88
volumesHeadline = Volumes
9+
windowOnTop = true
910

1011
[devices1]
1112
devices1Text = Webcam

audioswitcher.pb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ fontHeadline = FontID(gadgetFont)
3131

3232
; Window
3333
OpenWindowMain()
34+
If Config$("windowOnTop") = "true"
35+
StickyWindow(WindowMain, #True)
36+
EndIf
3437
; Set text
3538
SetGadgetFont(HeadlineDevices, fontHeadline)
3639
SetGadgetText(HeadlineDevices, Config$("devicesHeadline"))
@@ -254,8 +257,8 @@ Procedure.s findDevice(device.s, type.s)
254257
EndProcedure
255258

256259
; IDE Options = PureBasic 5.73 LTS (Windows - x86)
257-
; CursorPosition = 61
258-
; FirstLine = 21
260+
; CursorPosition = 33
261+
; FirstLine = 8
259262
; Folding = -
260263
; EnableXP
261264
; UseIcon = icon.ico

0 commit comments

Comments
 (0)