Search window's position settings#1367
Conversation
|
|
- Add Mouse Center Top position - remove RememberLastLaunch bool (moved to Launcher Positioning)
- Remove comment
d8cb0ba to
3c8acaa
Compare
Flow.Launcher/MainWindow.xaml.cs
Outdated
| private void InitializePosition() | ||
| { | ||
| if (_settings.RememberLastLaunchLocation) | ||
| if (_settings.LauncherPosition == "RememberLastLaunchLocation") |
Flow.Launcher/MainWindow.xaml.cs
Outdated
| return top; | ||
| } | ||
|
|
||
| public double WindowRight() |
There was a problem hiding this comment.
for Right (screen) position. it using in top-right option.
| public LauncherPositions Value { get; set; } | ||
| } | ||
|
|
||
| public List<LauncherPosition> LauncherPositions |
There was a problem hiding this comment.
This is clever, we may use this structure for all the combobox. Probably we want to cache this result? But that may break some behavior when changing language.
There was a problem hiding this comment.
I just copied and pasted the existing structure. 😋
- Change String to enum. - Remove duplicated code.
Flow.Launcher/MainWindow.xaml.cs
Outdated
| Left = WindowLeft(); | ||
| Top = WindowTop(); | ||
| break; | ||
| case LauncherPositions.MouseScreenCenterTop: | ||
| Left = WindowLeft(); | ||
| Top = 10; | ||
| break; | ||
| case LauncherPositions.MouseScreenLeftTop: | ||
| Left = 10; | ||
| Top = 10; | ||
| break; | ||
| case LauncherPositions.MouseScreenRightTop: | ||
| Left = WindowRight(); |
There was a problem hiding this comment.
We may want to change name of all three method here.
Flow.Launcher/SettingWindow.xaml.cs
Outdated
| pluginFilterTxb.Focus(); | ||
| } | ||
|
|
||
| private void LauncherPositionSelectedIndexChanged(object sender, SelectionChangedEventArgs e) |
There was a problem hiding this comment.
I don't know either. It seems like a code that VS automatically makes. When I'm making something, I sometimes see this blank code.
|
@taooceros @onesounds could we merge dev in please. |
|
|
@onesounds let me know when pr is good to go again. |
|
One thing from my testing prior to your recent merge Dev commits @onesounds, was that on a fresh install, the query window starts up on the top left corner. I wonder if we should have |
I'll check. I think remember last position should default and it should be center when fresh install. anyway I noticed little bugs. I'll mention to you when I think it's OK to review |
This will have the query window stay on the same monitor screen when dual or more monitors are in use, wouldn't the mouse focus option be better for people who use multiple monitors (especially if they are new to flow and don't know you can change those options yet)? |
Well... OK. I think you are right too. default will be 'mouse focused screen center'. |
|
OK done.
Test Cases
|
Features
Test Case
What to do later