From 1bdc97b59497f61be1d97c5b242ad0bfb972cb4c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 9 Aug 2024 02:24:12 +0330 Subject: [PATCH] fix: Fix linux minor issue --- ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index 5afc800..bc1c9da 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -725,7 +725,7 @@ bool MainWindow::get_elevated_permissions() { #ifdef Q_OS_LINUX if (!Linux_HavePkexec()) { MessageBoxWarning(software_name, "Please install \"pkexec\" first."); - neko_set_spmode_FAILED + return false; } auto ret = Linux_Pkexec_SetCapString(NekoGui::FindNekoBoxCoreRealPath(), "cap_net_admin=ep"); if (ret == 0) {