Added option to turn off background auto magic
This commit is contained in:
parent
53b92ae8ef
commit
a947e06140
@ -423,6 +423,8 @@ class OutputWaiter {
|
||||
*/
|
||||
backgroundMagic() {
|
||||
this.hideMagicButton();
|
||||
if (!this.app.options.autoMagic) return;
|
||||
|
||||
const sample = this.dishStr ? this.dishStr.slice(0, 1000) :
|
||||
this.dishBuffer ? this.dishBuffer.slice(0, 1000) : "";
|
||||
|
||||
|
@ -285,7 +285,7 @@
|
||||
</button>
|
||||
<span id="stale-indicator" class="hidden" data-toggle="tooltip" title="The output is stale. The input or recipe has changed since this output was generated. Bake again to get the new value.">
|
||||
<i class="material-icons">access_time</i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="textarea-wrapper">
|
||||
<div id="output-highlighter" class="no-select"></div>
|
||||
@ -492,6 +492,13 @@
|
||||
Use meta key for keybindings (Windows ⊞/Command ⌘)
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox option-item">
|
||||
<label for="autoMagic">
|
||||
<input type="checkbox" option="autoMagic" id="autoMagic">
|
||||
Attempt to detect encoded data automagically
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" id="reset-options">Reset options to default</button>
|
||||
|
@ -51,7 +51,8 @@ function main() {
|
||||
theme: "classic",
|
||||
useMetaKey: false,
|
||||
ioDisplayThreshold: 512,
|
||||
logLevel: "info"
|
||||
logLevel: "info",
|
||||
autoMagic: true,
|
||||
};
|
||||
|
||||
document.removeEventListener("DOMContentLoaded", main, false);
|
||||
|
@ -165,7 +165,7 @@ optgroup {
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link {
|
||||
color: var(--subtext-font-color);
|
||||
color: var(--subtext-font-colour);
|
||||
}
|
||||
|
||||
.nav-tabs>li>a.nav-link.active, .nav-tabs>li>a.nav-link.active:focus, .nav-tabs>li>a.nav-link.active:hover {
|
||||
|
Loading…
Reference in New Issue
Block a user