Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
بعض الإصلاحات لمعالج الأخطاء + تحديث التبعيات
Browse files Browse the repository at this point in the history
  • Loading branch information
islamiaat committed Jul 28, 2022
1 parent dc7d8e8 commit 7cea8cf
Show file tree
Hide file tree
Showing 25 changed files with 6,669 additions and 195 deletions.
13 changes: 8 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ const createWindow = () => {
},
{
label: 'إغلاق', click: function () {
mainWindow.destroy();
if (mainWindow !== null) {
mainWindow.close();
}
else if (mainWindow === null) createWindow()
app.isQuiting = true;
app.quit();
}
Expand All @@ -96,7 +99,7 @@ app.whenReady().then(async () => {
mainWindow.hide()

}

if (fs.existsSync(path.join(Path_appDate, '/islam_bot/Settings.json'))) {

let Settings = fs.readJSONSync(path.join(Path_appDate, '/islam_bot/Settings.json'));
Expand Down Expand Up @@ -158,7 +161,7 @@ app.on('window-all-closed', () => {
});

app.setLoginItemSettings({
openAtLogin: true,
path: path.join(process.resourcesPath, '../islam_bot.exe'),
args: ['--hidden']
openAtLogin: true,
path: path.join(process.resourcesPath, '../islam_bot.exe'),
args: ['--hidden']
})
Loading

0 comments on commit 7cea8cf

Please sign in to comment.