Skip to content

Commit

Permalink
Option for window to stay on top
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgit2k committed May 30, 2021
1 parent 28eeb7a commit 4ed34dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions audioswitcher.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ lastDevice = devices1
lastVolume = volumes1
devicesHeadline = Devices
volumesHeadline = Volumes
windowOnTop = true

[devices1]
devices1Text = Webcam
Expand Down
7 changes: 5 additions & 2 deletions audioswitcher.pb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ fontHeadline = FontID(gadgetFont)

; Window
OpenWindowMain()
If Config$("windowOnTop") = "true"
StickyWindow(WindowMain, #True)
EndIf
; Set text
SetGadgetFont(HeadlineDevices, fontHeadline)
SetGadgetText(HeadlineDevices, Config$("devicesHeadline"))
Expand Down Expand Up @@ -254,8 +257,8 @@ Procedure.s findDevice(device.s, type.s)
EndProcedure

; IDE Options = PureBasic 5.73 LTS (Windows - x86)
; CursorPosition = 61
; FirstLine = 21
; CursorPosition = 33
; FirstLine = 8
; Folding = -
; EnableXP
; UseIcon = icon.ico
Expand Down

0 comments on commit 4ed34dd

Please sign in to comment.