mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-02 02:38:30 +02:00
linux check were not done correctly for gui
This commit is contained in:
parent
8bf935a5cc
commit
0d4ab86ea2
1 changed files with 2 additions and 2 deletions
|
@ -387,11 +387,11 @@ class ButtonInstall(ttk.Button):
|
|||
_("WARNING_LOW_SPACE_CONTINUE") % (destination_path.resolve().drive, available_space_destination/Go)
|
||||
): return
|
||||
|
||||
if is_user_root():
|
||||
if not is_user_root():
|
||||
if not messagebox.askokcancel(_("WARNING"), _("WARNING_NOT_ROOT")):
|
||||
return
|
||||
|
||||
if are_permissions_enabled():
|
||||
if not are_permissions_enabled():
|
||||
# check if writing (for the /.cache/) and execution (for /tools/) are allowed
|
||||
if not messagebox.askokcancel(_("WARNING"), _("WARNING_INSTALLER_PERMISSION")):
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue