From 12c80bf86ef09c658640357548cd461e74b71522 Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Mon, 25 Apr 2022 15:59:39 +0430 Subject: [PATCH] change checkroot to isroot --- internal/gui/gui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gui/gui.go b/internal/gui/gui.go index 9f77831533..3a8967d0dd 100644 --- a/internal/gui/gui.go +++ b/internal/gui/gui.go @@ -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 @@ -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 }