-
Notifications
You must be signed in to change notification settings - Fork 887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement last window's fullscreen state #2495
Implement last window's fullscreen state #2495
Conversation
src/datastores/handlers/base.js
Outdated
@@ -34,6 +34,14 @@ class Settings { | |||
static _updateBounds(value) { | |||
return db.settings.update({ _id: 'bounds' }, { _id: 'bounds', value }, { upsert: true }) | |||
} | |||
|
|||
static _findIsWindowFullscreen() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this function used at all?
src/datastores/handlers/base.js
Outdated
return db.settings.findOne({ _id: 'isWindowFullscreen' }) | ||
} | ||
|
||
static _updateIsWindowFullscreen(value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this function used at all?
491f3b9
to
ec63b20
Compare
Unused methods removed |
@ChunkyProgrammer chunky power~ |
@@ -255,7 +255,8 @@ function runApp() { | |||
|
|||
const boundsDoc = await baseHandlers.settings._findBounds() | |||
if (typeof boundsDoc?.value === 'object') { | |||
const { maximized, ...bounds } = boundsDoc.value | |||
console.log({ boundsDoc }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably remove the console.log
Pull Request Type
Please select what type of pull request this is:
Related issue
closes #1535
Description
Implement last window's fullscreen state
Screenshots (if appropriate)
Lazy to take video
Testing (for code that is not small enough to be easily understandable)
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.