2018-08-15 21:13:20 +02:00
|
|
|
import {isAutoApplyEnable, isReloadNotificationEnable} from './settings';
|
2018-08-12 12:48:23 +02:00
|
|
|
import {infoMessage} from './messages';
|
|
|
|
import {fixIcons} from '../commands';
|
|
|
|
|
|
|
|
export default async (doubleCheck: boolean) => {
|
|
|
|
if (!doubleCheck) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isAutoApplyEnable()) {
|
|
|
|
return fixIcons();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!isReloadNotificationEnable()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const result = await infoMessage();
|
|
|
|
|
|
|
|
if (result.reload) {
|
|
|
|
return fixIcons();
|
|
|
|
}
|
|
|
|
};
|