Commit b0f2e00e authored by ransome1's avatar ransome1
Browse files

Fixed resizing bug

parent a1b0003a
{
"name": "sleek",
"productName": "sleek",
"version": "1.1.7-rc.2",
"version": "1.1.7",
"description": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"synopsis": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"category": "ProjectManagement",
......
......@@ -403,15 +403,10 @@ function getTranslations() {
function configureWindowEvents() {
try {
mainWindow
// .on("resize", function() {
// if(mainWindow.isMaximized()) {
// userData.set("maximizeWindow", true);
// } else if(mainWindow.isNormal()) {
// userData.set("maximizeWindow", false);
// userData.set("width", this.getBounds().width);
// userData.set("height", this.getBounds().height);
// }
// })
.on("resize", function() {
userData.set("width", this.getBounds().width);
userData.set("height", this.getBounds().height);
})
.on("maximize", function() {
userData.set("maximizeWindow", true);
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment