mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
[enhancement]: also save fullscreen/maximize
This commit is contained in:
parent
c0110eff82
commit
6824a5db7a
3 changed files with 18 additions and 2 deletions
|
|
@ -13,6 +13,8 @@ import macMinHover from './assets/min-mac-hover.png';
|
|||
import macMin from './assets/min-mac.png';
|
||||
import appIcon from '../../../assets/icons/32x32.png';
|
||||
|
||||
const localSettings = isElectron() ? window.electron.localSettings : null;
|
||||
|
||||
const WindowsContainer = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -228,7 +230,7 @@ export const WindowBar = () => {
|
|||
: 'Feishin';
|
||||
document.title = title;
|
||||
|
||||
const [max, setMax] = useState(false);
|
||||
const [max, setMax] = useState(localSettings?.env.START_MAXIMIZED || false);
|
||||
|
||||
const handleMinimize = () => minimize();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue