Fix customcss
This commit is contained in:
parent
6f167ab2cd
commit
b4b7a158e3
|
@ -9,7 +9,7 @@ const fs = require("fs");
|
||||||
const electron = require("electron");
|
const electron = require("electron");
|
||||||
const UserSettings = WebpackModules.getByProps("updateAccount");
|
const UserSettings = WebpackModules.getByProps("updateAccount");
|
||||||
const Dispatcher = WebpackModules.getByProps("dirtyDispatch");
|
const Dispatcher = WebpackModules.getByProps("dirtyDispatch");
|
||||||
const ActionTypes = WebpackModules.getByProps("ActionTypes").ActionTypes;
|
const ActionTypes = WebpackModules.getByProps("ActionTypes", "ActivityFlags").ActionTypes;
|
||||||
|
|
||||||
export default new class CustomCSS extends Builtin {
|
export default new class CustomCSS extends Builtin {
|
||||||
get name() {return "Custom CSS";}
|
get name() {return "Custom CSS";}
|
||||||
|
@ -52,6 +52,7 @@ export default new class CustomCSS extends Builtin {
|
||||||
disabled() {
|
disabled() {
|
||||||
Settings.removePanel(this.id);
|
Settings.removePanel(this.id);
|
||||||
this.unwatchContent();
|
this.unwatchContent();
|
||||||
|
this.insertCSS("");
|
||||||
}
|
}
|
||||||
|
|
||||||
watchContent() {
|
watchContent() {
|
||||||
|
@ -150,6 +151,6 @@ export default new class CustomCSS extends Builtin {
|
||||||
});
|
});
|
||||||
this.isDetached = true;
|
this.isDetached = true;
|
||||||
UserSettings.close();
|
UserSettings.close();
|
||||||
Dispatcher.dirtyDispatch({type: ActionTypes.LAYER_POP});
|
Dispatcher.dispatch({type: ActionTypes.LAYER_POP});
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue