From 8568e488d847d34689cdb74cee9130d8d1360a34 Mon Sep 17 00:00:00 2001 From: Peter Justin Date: Tue, 11 Mar 2025 20:27:11 +0100 Subject: [PATCH] Disable download handle button on linux --- d2rloader/ui/setting_dialog.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/d2rloader/ui/setting_dialog.py b/d2rloader/ui/setting_dialog.py index e457994..acad5f8 100644 --- a/d2rloader/ui/setting_dialog.py +++ b/d2rloader/ui/setting_dialog.py @@ -3,6 +3,7 @@ import functools import os import shutil +import sys from typing import Callable, Final from loguru import logger @@ -263,9 +264,14 @@ def __init__( "handle.exe;handle64.exe", ) ) + self.download_button: QPushButton = QPushButton("Download") self.download_button.clicked.connect(self.download_handle) + if sys.platform == "linux": + self.handle_path_button.setDisabled(True) + self.download_button.setDisabled(True) + self.addWidget(self.handle_path_button, 1) self.addWidget(self.download_button)