1
0
Fork 0
mirror of synced 2024-06-03 03:04:42 +12:00

Replace IndicatorEdit with PathEdit for pre-launch

This commit is contained in:
Dummerle 2022-03-22 21:55:49 +01:00
parent 7f44ca7985
commit bdbb840e32
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -2,11 +2,11 @@ import os
import shutil
from typing import Tuple
from PyQt5.QtWidgets import QHBoxLayout, QCheckBox
from PyQt5.QtWidgets import QHBoxLayout, QCheckBox, QFileDialog
from rare.shared import LegendaryCoreSingleton
from rare.utils import config_helper
from rare.utils.extra_widgets import IndicatorLineEdit
from rare.utils.extra_widgets import IndicatorLineEdit, PathEdit
class PreLaunchSettings(QHBoxLayout):
@ -15,9 +15,10 @@ class PreLaunchSettings(QHBoxLayout):
def __init__(self):
super(PreLaunchSettings, self).__init__()
self.core = LegendaryCoreSingleton()
self.edit = IndicatorLineEdit(
text="",
self.edit = PathEdit(
path="",
placeholder=self.tr("Path to script"),
file_type=QFileDialog.ExistingFile,
edit_func=self.edit_command,
save_func=self.save_pre_launch_command,
)