Skip to content

Commit

Permalink
chore: fix format check
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Dec 19, 2022
1 parent 3b67d7b commit cbee71b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ module-legacy/manifests
module-legacy/dist
module-legacy/entrypoints

module-local-dev
module-local-dev
bundled-modules
17 changes: 11 additions & 6 deletions launcher/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,15 @@ if (!lock) {
function sendAppInfo() {
if (window) {
const loginSettings = app.getLoginItemSettings()
window.webContents.send('info', {
...uiConfig.store,
run_at_login: loginSettings.openAtLogin
}, appInfo, process.platform)
window.webContents.send(
'info',
{
...uiConfig.store,
run_at_login: loginSettings.openAtLogin,
},
appInfo,
process.platform
)
}
}

Expand Down Expand Up @@ -317,10 +322,10 @@ if (!lock) {
console.log('changed start minimized:', msg)
uiConfig.set('start_minimised', msg)
})

ipcMain.on('launcher-set-run-at-login', (e, msg) => {
console.log('changed run at login:', msg)

app.setLoginItemSettings({
openAtLogin: !!msg,
})
Expand Down
2 changes: 1 addition & 1 deletion launcher/window.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ input[type='checkbox'] {
grid-auto-columns: 1fr;

padding: 0 20px;
}
}
14 changes: 7 additions & 7 deletions launcher/window.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ <h1 id="status">Status</h1>
</p>
<p class="two-columns">
<span>
<input type="checkbox" id="start_minimized" />
<label for="start_minimized" style="font-size: 12px">Start minimized</label>
</span>
<span id="run_at_login_group">
<input type="checkbox" id="run_at_login" />
<label for="run_at_login" style="font-size: 12px">Run at login</label>
</span>
<input type="checkbox" id="start_minimized" />
<label for="start_minimized" style="font-size: 12px">Start minimized</label>
</span>
<span id="run_at_login_group">
<input type="checkbox" id="run_at_login" />
<label for="run_at_login" style="font-size: 12px">Run at login</label>
</span>
</p>

<div id="developer_settings_panel">
Expand Down

0 comments on commit cbee71b

Please sign in to comment.