auto-git:
[unlink] modules/constants.js [unlink] modules/git.js [unlink] modules/ipc-handlers.js [unlink] modules/llm.js [unlink] modules/readme-gen.js [unlink] modules/store.js [unlink] modules/tray.js [unlink] modules/utils.js [unlink] modules/watcher.js [unlink] modules/window.js
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
const Store = require('electron-store');
|
|
||||||
const store = new Store({
|
|
||||||
defaults: {
|
|
||||||
folders: [],
|
|
||||||
selected: null,
|
|
||||||
skymode: true,
|
|
||||||
skipGitPrompt: true,
|
|
||||||
intelligentCommitThreshold: 20,
|
|
||||||
minutesCommitThreshold: 5,
|
|
||||||
autostart: false,
|
|
||||||
closeToTray: true,
|
|
||||||
needsRelocation: false,
|
|
||||||
dailyCommitStats: {}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
module.exports = store;
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
function createTray(win) {
|
|
||||||
const iconPath = path.join(__dirname, 'assets/icon/trayicon.png');
|
|
||||||
const icon = nativeImage.createFromPath(iconPath);
|
|
||||||
|
|
||||||
// Standard-Größen je nach OS
|
|
||||||
let size;
|
|
||||||
switch (process.platform) {
|
|
||||||
case 'darwin': // macOS
|
|
||||||
size = { width: 22, height: 22 };
|
|
||||||
break;
|
|
||||||
case 'win32': // Windows
|
|
||||||
size = { width: 16, height: 16 };
|
|
||||||
break;
|
|
||||||
default: // Linux / other
|
|
||||||
size = { width: 24, height: 24 };
|
|
||||||
}
|
|
||||||
|
|
||||||
const trayImage = icon.resize(size);
|
|
||||||
const tray = new Tray(trayImage);
|
|
||||||
|
|
||||||
tray.setToolTip('Auto-Git läuft im Hintergrund');
|
|
||||||
tray.on('double-click', () => {
|
|
||||||
win.show();
|
|
||||||
win.focus();
|
|
||||||
});
|
|
||||||
|
|
||||||
return tray;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user