Add a warning to the advanced settings section
This commit is contained in:
1 parent
5d7a697c2b
commit
7381beaf9c
2 files changed
+18
-1
No files matched your search
@@ -1693,10 +1693,19 @@ class SettingsPanel:
|
|||||||
advanced_center = ttk.Frame(advanced_frame)
|
advanced_center = ttk.Frame(advanced_frame)
|
||||||
advanced_center.grid(column=0, row=0)
|
advanced_center.grid(column=0, row=0)
|
||||||
|
|
||||||
|
# Warning message
|
||||||
|
ttk.Label(
|
||||||
|
advanced_center, text=_("gui", "settings", "advanced", "warning"), foreground="red"
|
||||||
|
).grid(column=0, row=(irow := 0), columnspan=2)
|
||||||
|
ttk.Label(
|
||||||
|
advanced_center,
|
||||||
|
text=_("gui", "settings", "advanced", "warning_text"),
|
||||||
|
foreground="goldenrod",
|
||||||
|
).grid(column=0, row=(irow := irow + 1), columnspan=2)
|
||||||
# Toggles for badges and emotes, and available drops check
|
# Toggles for badges and emotes, and available drops check
|
||||||
ttk.Label(
|
ttk.Label(
|
||||||
advanced_center, text=_("gui", "settings", "advanced", "enable_badges_emotes")
|
advanced_center, text=_("gui", "settings", "advanced", "enable_badges_emotes")
|
||||||
).grid(column=0, row=(irow := 0), sticky="e")
|
).grid(column=0, row=(irow := irow + 1), sticky="e")
|
||||||
ttk.Checkbutton(
|
ttk.Checkbutton(
|
||||||
advanced_center,
|
advanced_center,
|
||||||
variable=self._vars["enable_badges_emotes"],
|
variable=self._vars["enable_badges_emotes"],
|
||||||
|
|||||||
@@ -168,6 +168,8 @@ class GUISettingsGeneral(TypedDict):
|
|||||||
|
|
||||||
class GUISettingsAdvanced(TypedDict):
|
class GUISettingsAdvanced(TypedDict):
|
||||||
name: str
|
name: str
|
||||||
|
warning: str
|
||||||
|
warning_text: str
|
||||||
enable_badges_emotes: str
|
enable_badges_emotes: str
|
||||||
available_drops_check: str
|
available_drops_check: str
|
||||||
|
|
||||||
@@ -375,6 +377,12 @@ default_translation: Translation = {
|
|||||||
},
|
},
|
||||||
"advanced": {
|
"advanced": {
|
||||||
"name": "Advanced",
|
"name": "Advanced",
|
||||||
|
"warning": "Warning!",
|
||||||
|
"warning_text": (
|
||||||
|
"These options will cause the miner to misbehave.\n"
|
||||||
|
"If you're experiencing any issues, "
|
||||||
|
"make sure all of these options are disabled."
|
||||||
|
),
|
||||||
"enable_badges_emotes": "Enable partial support for badges and emotes: ",
|
"enable_badges_emotes": "Enable partial support for badges and emotes: ",
|
||||||
"available_drops_check": "Enable extra available drops check: ",
|
"available_drops_check": "Enable extra available drops check: ",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user