Skip to content

Commit

Permalink
change checkroot to isroot
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Apr 25, 2022
1 parent 1c2b24e commit 12c80bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func initAdvancedButton(conf *visorconfig.V1) {
// if it's not installed via package, hide the uninstall button
initUninstallBtn()
//hide the buttons which could launch the browser if the process is run as root
if checkRoot() {
if isRoot() {
mAdvancedButton.Hide()
mOpenHypervisor.Hide()
return
Expand Down Expand Up @@ -178,7 +178,7 @@ func initAdvancedButton(conf *visorconfig.V1) {

func initOpenVPNLinkBtn(vc *visorconfig.V1) {
mVPNLink = systray.AddMenuItem("Open VPN UI", "Open VPN UI in browser")
if checkRoot() {
if isRoot() {
mVPNLink.Hide()
return
}
Expand Down

0 comments on commit 12c80bf

Please sign in to comment.