Skip to content

Commit

Permalink
Disable download handle button on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sh4nks committed Mar 11, 2025
1 parent cab2ae2 commit 8568e48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions d2rloader/ui/setting_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import functools
import os
import shutil
import sys
from typing import Callable, Final

from loguru import logger
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 8568e48

Please sign in to comment.