allow disabling I guess

This commit is contained in:
Zack Rauen 2018-10-19 12:55:17 -04:00
parent d9bafb0a34
commit 3b3541dd22
2 changed files with 6 additions and 8 deletions

View File

@ -3837,13 +3837,11 @@ class V2_SettingsPanel {
ContentManager.unwatchContent("theme");
}
if (_c["fork-wp-1"]) {
const current = BdApi.getWindowPreference("transparent");
if (current != _c["fork-wp-1"]) {
BdApi.setWindowPreference("transparent", _c["fork-wp-1"]);
if (_c["fork-wp-1"]) BdApi.setWindowPreference("backgroundColor", null);
else BdApi.setWindowPreference("backgroundColor", "#2f3136");
}
const current = BdApi.getWindowPreference("transparent");
if (current != _c["fork-wp-1"]) {
BdApi.setWindowPreference("transparent", _c["fork-wp-1"]);
if (_c["fork-wp-1"]) BdApi.setWindowPreference("backgroundColor", null);
else BdApi.setWindowPreference("backgroundColor", "#2f3136");
}
if (_c["fork-wp-2"]) {

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long