Skip to content
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

Release 1.20.0 | Plugin 4.5.0 #3269

Draft
wants to merge 719 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
719 commits
Select commit Hold shift + click to select a range
6a736a8
Add bgcolor for blur
onesounds Mar 1, 2025
70543d2
Add WindowCornerRadius Property function
onesounds Mar 1, 2025
5b81cf5
Adjust Shadow Effect
onesounds Mar 1, 2025
f00f98c
Add Proprerty for blur themes
onesounds Mar 1, 2025
2cd5174
Adjust themes
onesounds Mar 2, 2025
ae8f647
Use styles for JsonRPC settings panel
Jack251970 Mar 2, 2025
1681ac4
Fix path select button possibly invisible issue
Jack251970 Mar 2, 2025
31892a0
Adjust installed plugin keyword margin
Jack251970 Mar 2, 2025
38cf8c3
Merge branch 'dev' into settings_panel
Jack251970 Mar 2, 2025
20d0ed1
Remove unnecessary todo
Jack251970 Mar 3, 2025
889f4cb
Fix null reference exception when checking source
Jack251970 Mar 4, 2025
ff18abc
Change Window type
onesounds Mar 4, 2025
f0b1422
Change AddShadow Logic
onesounds Mar 4, 2025
90828d9
Fix Shadow Timing
onesounds Mar 4, 2025
f712f63
Adjust Animator
onesounds Mar 5, 2025
92e6e53
Use dependency injection instead of navigation parameter
Jack251970 Mar 5, 2025
f2248e9
Use dependency injection instead of dependency property
Jack251970 Mar 5, 2025
bfdf565
Merge pull request #3300 from Jack251970/settings_panel_double_creation
jjw24 Mar 5, 2025
c68a764
Improve code quality
Jack251970 Mar 5, 2025
c848fab
Merge branch 'dev' into settings_panel
Jack251970 Mar 5, 2025
a4111ae
Merge pull request #3306 from Jack251970/install_unknown_null
Jack251970 Mar 5, 2025
31d47a2
Use dependency injection instead of navigation parameter
Jack251970 Mar 5, 2025
719d30e
Use official Task Scheduler
Jack251970 Mar 5, 2025
8ce4bd9
Fix page number issue when navigating with keyboard
Jack251970 Mar 6, 2025
4ab5ef0
Adjust Animation
onesounds Mar 6, 2025
2da2012
Adjust Animation
onesounds Mar 6, 2025
2a55cab
Fix Show Function
onesounds Mar 6, 2025
40ca75a
Adjust Comment, Adjust Shadow Timing.
onesounds Mar 6, 2025
7587178
Adjust Hide function for fix blink issue
onesounds Mar 6, 2025
4042231
Fix blink issue when fast trigering show/hide
onesounds Mar 6, 2025
a65dc65
Change Show/Hide function to using DWM
onesounds Mar 6, 2025
1bfec0a
Fix Animation
onesounds Mar 6, 2025
624fa0e
Fix Hide
onesounds Mar 6, 2025
1b22d9c
Fix Clock Animation
onesounds Mar 6, 2025
69b7aea
Update dependabot.yml
Jack251970 Mar 6, 2025
2710de1
Fix Search Icon Opacity
onesounds Mar 6, 2025
5881da8
Merge pull request #3313 from Flow-Launcher/official_task_scheduler
Jack251970 Mar 6, 2025
f2c3034
Add new sponsor to README
Yusyuriv Mar 8, 2025
46cdb2a
Fix Blink issue when hidestartup mode (hide on)
onesounds Mar 8, 2025
c0296d2
Merge pull request #3320 from Flow-Launcher/add-new-sponsor-to-readme
onesounds Mar 8, 2025
01d081d
Revert Startup Blinking
onesounds Mar 8, 2025
b8748d6
Fix Render Blink
onesounds Mar 8, 2025
c63bb21
Added Windows 10 check code
onesounds Mar 8, 2025
1345470
- Revert blinking fix
onesounds Mar 8, 2025
7e622b7
Add BackdropType in setting
onesounds Mar 9, 2025
9510a07
Add Mica Background option
onesounds Mar 9, 2025
f5d9155
Add Mica control in blur function
onesounds Mar 9, 2025
3dc7410
Merge pull request #3317 from Flow-Launcher/update_dependabot
Jack251970 Mar 9, 2025
8ca734a
Bump FSharp.Core from 9.0.101 to 9.0.201
dependabot[bot] Mar 9, 2025
66457b1
Bump MemoryPack from 1.21.3 to 1.21.4
dependabot[bot] Mar 9, 2025
e205e59
Merge pull request #3321 from Flow-Launcher/dependabot/nuget/FSharp.C…
Jack251970 Mar 9, 2025
0afb0b4
Merge pull request #3322 from Flow-Launcher/dependabot/nuget/MemoryPa…
Jack251970 Mar 9, 2025
c1a8015
Bump StreamJsonRpc from 2.20.20 to 2.21.10
dependabot[bot] Mar 9, 2025
65d42bf
Bump Microsoft.Data.Sqlite from 9.0.1 to 9.0.2
dependabot[bot] Mar 9, 2025
ee39aaf
Merge pull request #3323 from Flow-Launcher/dependabot/nuget/StreamJs…
Jack251970 Mar 9, 2025
04e2e41
Merge pull request #3324 from Flow-Launcher/dependabot/nuget/Microsof…
Jack251970 Mar 9, 2025
8408a3c
Bump System.Data.OleDb from 8.0.1 to 9.0.2
dependabot[bot] Mar 9, 2025
aca6893
Merge pull request #3325 from Flow-Launcher/dependabot/nuget/System.D…
Jack251970 Mar 9, 2025
869fe5f
Revert "Bump System.Data.OleDb from 8.0.1 to 9.0.2"
Jack251970 Mar 10, 2025
36e10a1
Merge pull request #3328 from Jack251970/nuget_package
jjw24 Mar 10, 2025
4fd5e15
- Adjust Setting order
onesounds Mar 11, 2025
1c79d51
Fix Change Theme render timing
onesounds Mar 11, 2025
ba02a3c
Add Strings
onesounds Mar 11, 2025
e870dd2
Allow log level selection
VictoriousRaptor May 29, 2024
44a90e5
Write log level in log
VictoriousRaptor Mar 11, 2025
1dfa15d
Bump Microsoft.Data.Sqlite from 9.0.2 to 9.0.3
dependabot[bot] Mar 11, 2025
8d3fd75
Add getter and setter
VictoriousRaptor Mar 12, 2025
68afe86
Merge pull request #3333 from Flow-Launcher/dependabot/nuget/Microsof…
Jack251970 Mar 12, 2025
3fe52f9
Merge branch 'dev' into debug-log-level
Jack251970 Mar 12, 2025
11acca6
Move log level to enum & Use info level as default
Jack251970 Mar 12, 2025
05ff797
Use one function to set log level
Jack251970 Mar 12, 2025
66bf046
Add log level change to general settings page
Jack251970 Mar 12, 2025
a2372d8
Merge branch 'dev' into flow-theme-selector-plugin
Jack251970 Mar 12, 2025
b2dc128
Use dependency injection to fix issue
Jack251970 Mar 12, 2025
59fbef1
Use public current theme
Jack251970 Mar 12, 2025
9395b89
Make default score larger
Jack251970 Mar 12, 2025
468c0b2
Change ico & glyph
Jack251970 Mar 12, 2025
f4b074c
Fix shadow effec tissue
onesounds Mar 12, 2025
ea5b3f1
Disable backdrop control when use non-blur theme
onesounds Mar 12, 2025
9b2148f
Merge pull request #2739 from Flow-Launcher/debug-log-level
VictoriousRaptor Mar 12, 2025
bad304b
Query themes every time
Jack251970 Mar 12, 2025
94774b2
Requery and do not close window
Jack251970 Mar 12, 2025
d099a39
Fix theme change drop shadow effect issue & Add theme description
Jack251970 Mar 12, 2025
b2f8ad9
Fix null exception
Odotocodot Mar 12, 2025
84cd1a8
Remove extra code
Odotocodot Mar 12, 2025
f503e41
Merge branch 'dev' into flow-theme-selector-plugin
Odotocodot Mar 12, 2025
59b4859
Merge pull request #2448 from Odotocodot/flow-theme-selector-plugin
Jack251970 Mar 13, 2025
aabe967
Adjust Dropshadow control disable
onesounds Mar 13, 2025
ec5d52e
Fix Preview background
onesounds Mar 13, 2025
e8be131
Move log level to about page
Jack251970 Mar 13, 2025
72d2b7e
Change default pending color
onesounds Mar 13, 2025
f24d64a
Add log level glyph
Jack251970 Mar 13, 2025
f96d88f
Fix strings
Jack251970 Mar 13, 2025
424b575
Merge pull request #3342 from Jack251970/log_level_card
Jack251970 Mar 13, 2025
73c5f39
Merge Dev
onesounds Mar 13, 2025
dd1f439
Adjust strings and icon
onesounds Mar 13, 2025
6c1730e
Merge Dev
onesounds Mar 13, 2025
88f8274
Remove duplicated strings
onesounds Mar 13, 2025
7868703
Merge branch 'dev' into welcome_backspace_issue
Jack251970 Mar 13, 2025
9b28161
Merge pull request #3310 from Jack251970/welcome_backspace_issue
jjw24 Mar 13, 2025
bc0cde2
Add translations for system plugin command column
Jack251970 Mar 13, 2025
01e8be7
Fix FL settings issue
Jack251970 Mar 13, 2025
8335821
Clean up codes
Jack251970 Mar 13, 2025
e0f02a0
Initialize localized grid & Edit button
Jack251970 Mar 13, 2025
2a5b22b
Add command keyword change dialog & Support culture change
Jack251970 Mar 13, 2025
e196d7c
Improve keyword search
Jack251970 Mar 13, 2025
0f279df
Add title & subtitle search
Jack251970 Mar 13, 2025
2cd769b
Fix UI thread issue and preview
onesounds Mar 14, 2025
c7a2dee
Fix Keeping shadow when change page issue
onesounds Mar 14, 2025
caa5a48
Use enum instead of constants & Use vm property
Jack251970 Mar 14, 2025
8484c2b
Fix color scheme change issue & Code cleanup
Jack251970 Mar 14, 2025
c17dcad
Revert "Use enum instead of constants"
Jack251970 Mar 14, 2025
ab3cd8a
Use largest score from title & subtitle & keyword
Jack251970 Mar 14, 2025
57d206f
Fix SystemBG color select
onesounds Mar 14, 2025
887be64
Merge branch '250223FluentTest2' of https://github.com/onesounds/Flow…
onesounds Mar 14, 2025
e527e6c
Fix Backdrop reset when change theme
onesounds Mar 14, 2025
ecebf17
New Crowdin updates (#3186)
jjw24 Mar 14, 2025
9c1ff85
Merge branch 'dev' into ProgressBarDispatcher
Jack251970 Mar 14, 2025
fd344a3
Fix Preview border
onesounds Mar 14, 2025
c28a37a
Fix build issue
Jack251970 Mar 14, 2025
5d2778a
Code cleanup
Jack251970 Mar 14, 2025
e862b38
Cleanup PendingLineStyle
Jack251970 Mar 14, 2025
4e15cb0
Comment cleanup
onesounds Mar 15, 2025
d90b82a
Code Cleanup
onesounds Mar 15, 2025
6013229
Update all dependencies to Fody 6.5.5
VictoriousRaptor Mar 15, 2025
7c8d45d
- Fix Clock Right margin
onesounds Mar 15, 2025
aeb3f22
- rollback pin theme to legacy
onesounds Mar 15, 2025
4bb8bff
Merge pull request #3349 from Flow-Launcher/fody-6.5.5
VictoriousRaptor Mar 15, 2025
9b60eac
Code cleanup
Jack251970 Mar 15, 2025
53d647f
Adjust Themes for fluent
onesounds Mar 16, 2025
9ec6d5c
Fix clock visibilty when open context menu
onesounds Mar 16, 2025
fa5bfd3
Fix BlurWhite theme
onesounds Mar 16, 2025
ce55303
- Fix Logic for dwmBG
onesounds Mar 16, 2025
c34fd63
Merge pull request #3311 from Jack251970/remove_panel_data
Jack251970 Mar 16, 2025
0086a9e
Add a condition to disable blur on unsupported Windows versions.
onesounds Mar 16, 2025
c792544
Adjust UI
onesounds Mar 16, 2025
a98b7b7
Merge branch 'dev' into 250223FluentTest2
Jack251970 Mar 16, 2025
29c6f12
Code cleanup
Jack251970 Mar 16, 2025
82af6ab
Merge pull request #3344 from Jack251970/system_plugin_translation
Jack251970 Mar 16, 2025
07b0e72
Code cleanup
Jack251970 Mar 16, 2025
e4ade45
Use PInvoke.DwmSetWindowAttribute instead of DllImport
Jack251970 Mar 16, 2025
db37ab7
Use PInvoke.DwmSetWindowAttribute instead of DllImport
Jack251970 Mar 16, 2025
7a85439
Improve code quality
Jack251970 Mar 16, 2025
2dcbe7f
Remove old blur handling codes
Jack251970 Mar 16, 2025
200c32b
Code cleanup
Jack251970 Mar 16, 2025
cff400b
Revert main window xaml change
Jack251970 Mar 16, 2025
7c23aeb
Improve code quality
Jack251970 Mar 16, 2025
07c5fa4
Improve code quality
Jack251970 Mar 16, 2025
2ed5de3
Improve sys plugin theme selector
Jack251970 Mar 16, 2025
cd46c79
Fix build issue
Jack251970 Mar 16, 2025
9a6175e
Remove useless position initialization & Remove useless dispatcher in…
Jack251970 Mar 16, 2025
eb2a24d
Merge pull request #1445 from Sparrkle/ProgressBarDispatcher
Jack251970 Mar 16, 2025
6f093cf
Merge branch 'dev' into 250223FluentTest2
Jack251970 Mar 16, 2025
3966290
Refresh frame after position is intialized
Jack251970 Mar 16, 2025
2ea303f
Code cleanup
Jack251970 Mar 16, 2025
70e7f82
Fix Blink
onesounds Mar 16, 2025
ecc9f0d
Fix acrylic backdrop flicker issue
Jack251970 Mar 16, 2025
09d66f5
Merge branch '250223FluentTest2' of https://github.com/onesounds/Flow…
onesounds Mar 16, 2025
8b10973
Revert "Fix Blink"
Jack251970 Mar 16, 2025
1ca17aa
Code cleanup
Jack251970 Mar 16, 2025
1baf175
Merge branch 'dev' into settings_panel
Jack251970 Mar 16, 2025
6c80e74
Fix websearch plugin issue & Improve sys plugin settings panel
Jack251970 Mar 16, 2025
fcd7e55
Change string resources
Jack251970 Mar 16, 2025
2cd1683
Improve code quality
Jack251970 Mar 16, 2025
a98a033
Improve code quality
Jack251970 Mar 16, 2025
7d62ded
Improve code quality
Jack251970 Mar 16, 2025
49f1d79
Fix SetWindowLong issue
Jack251970 Mar 16, 2025
bf5591c
Fix position set issue
Jack251970 Mar 16, 2025
0bcc187
Keep user settings when changing theme
Jack251970 Mar 16, 2025
2b6e1bf
Improve code quality
Jack251970 Mar 17, 2025
da30e2e
Improve code quality
Jack251970 Mar 17, 2025
a2f70f4
Organize usings
Jack251970 Mar 17, 2025
1e6bbdd
Organize usings
Jack251970 Mar 17, 2025
698217f
Improve code quality
Jack251970 Mar 17, 2025
4d080a9
Fix build issue
Jack251970 Mar 17, 2025
b1ec0bd
Fix custom query hotkey settings issue
Jack251970 Mar 17, 2025
2c5fcf7
Add hotkey control type & format xaml
Jack251970 Mar 17, 2025
43bf634
Improve area text box
Jack251970 Mar 17, 2025
afb38db
Fix possible null reference exception
Jack251970 Mar 17, 2025
0f3f97a
fix typo
jjw24 Mar 17, 2025
83c7ee1
Change type name & Add comments
Jack251970 Mar 17, 2025
497ac91
Add None hotkey type
Jack251970 Mar 17, 2025
9d1e305
Merge pull request #3354 from Jack251970/fix_custom_hotkey
Jack251970 Mar 17, 2025
841cc06
Fix blink clock/icon animation issue when show/hide repeatly
onesounds Mar 17, 2025
f3a5365
Merge remote-tracking branch 'origin/250223FluentTest2' into 250223Fl…
onesounds Mar 17, 2025
0741231
Adjust Flickering code
onesounds Mar 17, 2025
95f151b
Organize usings
Jack251970 Mar 17, 2025
711865d
Use local variable for storyboard
Jack251970 Mar 17, 2025
7876fa1
Fix possible cancel token issue
Jack251970 Mar 17, 2025
570d9ce
Remove useless logic
Jack251970 Mar 17, 2025
bfa7622
Improve performance
Jack251970 Mar 17, 2025
df8f2f0
Merge branch 'dev' into 250223FluentTest2
Jack251970 Mar 17, 2025
044dc2c
Fix hotkey initialization issue
Jack251970 Mar 18, 2025
e28a69c
Merge pull request #3357 from Jack251970/fix_custom_hotkey1
Jack251970 Mar 18, 2025
8493fa5
Merge branch 'dev' into 250223FluentTest2
Jack251970 Mar 18, 2025
a3322fc
Remove Corner Type
onesounds Mar 18, 2025
4731d88
Removed window animation storyboard
onesounds Mar 18, 2025
aaca0c0
Change Comment to english
onesounds Mar 18, 2025
9cb31c8
Improve code quality
Jack251970 Mar 19, 2025
944393c
Improve code quality
Jack251970 Mar 19, 2025
5252d3e
Merge pull request #3271 from onesounds/250223FluentTest2
onesounds Mar 20, 2025
87f765b
Merge pull request #3261 from Jack251970/multiple_keywords
Jack251970 Mar 20, 2025
444d295
Update Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
Jack251970 Mar 20, 2025
f14e79d
Update Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
Jack251970 Mar 20, 2025
ffc5047
Update Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
Jack251970 Mar 20, 2025
1d625c9
Update Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
Jack251970 Mar 20, 2025
13fcdc6
Fix typo 'seperator'
Jack251970 Mar 20, 2025
782c11c
Update Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
Jack251970 Mar 20, 2025
f7d099d
Fix wpf drawing issue
onesounds Mar 20, 2025
f6b9d7e
Fix Comment
onesounds Mar 20, 2025
288808a
Merge pull request #3362 from onesounds/250320-FixTabControlExplorer
onesounds Mar 20, 2025
e5298d3
Revert "ExplorerSettings.xaml"
Jack251970 Mar 20, 2025
a6812cf
Merge branch 'dev' into settings_panel
Jack251970 Mar 20, 2025
d533f53
Add global margin & Remove inner margin & Remove inner scroll viewer
Jack251970 Mar 20, 2025
3fee5ae
Redesign explorer settings panel
Jack251970 Mar 20, 2025
024bf64
Use trick for left alignment
Jack251970 Mar 20, 2025
ca0299e
Adjust margin
onesounds Mar 20, 2025
dda008f
Merge pull request #3265 from Jack251970/settings_panel
Jack251970 Mar 20, 2025
a160a78
Fix result update interface issue
Jack251970 Mar 21, 2025
b75066f
Fix change plugin language issue
Jack251970 Mar 21, 2025
81a4632
Implement auto-switching to English when the option is enabled
Yusyuriv Mar 21, 2025
aa3ad10
When looking for English keyboard layout, use pre-defined IDs instead…
Yusyuriv Mar 22, 2025
4e5584b
Enable acrylic effect on first launch if running on Windows 11
onesounds Mar 22, 2025
023ab45
Use PInvoke instead of DllImport & Several adjustments
Jack251970 Mar 22, 2025
465108a
Fix keyboard layout fetch issue
Jack251970 Mar 22, 2025
67be335
Rename methods to make their purpose more obvious; slight code style …
Yusyuriv Mar 22, 2025
8d0d19e
Merge pull request #3369 from onesounds/050322-ArcrylicFirstLaunch
onesounds Mar 22, 2025
c39079b
Revert accidental change
Yusyuriv Mar 22, 2025
4146f4d
Use focus events to trigger
Jack251970 Mar 22, 2025
f83e8ed
Revert "Use focus events to trigger"
Yusyuriv Mar 22, 2025
6ad4b23
Don't switch to English when IME can be disabled instead
Yusyuriv Mar 22, 2025
ca04823
Remove generic language code
Yusyuriv Mar 22, 2025
3e64a34
Update README.md
AleksandrSl Mar 22, 2025
839c26d
Merge pull request #3371 from AleksandrSl/patch-1
cibere Mar 22, 2025
017cc5a
Merge pull request #3365 from Jack251970/result_update_issue
Jack251970 Mar 23, 2025
0ef4b05
Add Initial state for QueryTextBoxCursorMovedToEnd
onesounds Mar 23, 2025
6fbde2f
Merge pull request #3374 from onesounds/050323_FixLastCaret
onesounds Mar 23, 2025
747f958
Fix keyboard restore issue when window is deactivated
Jack251970 Mar 23, 2025
cd28c09
Fix the issue with not being able to switch back to the original keyb…
Yusyuriv Mar 23, 2025
bf011f1
Revert "Fix keyboard restore issue when window is deactivated"
Yusyuriv Mar 23, 2025
382d0c2
Don't broadcast language change
Yusyuriv Mar 23, 2025
48aff32
Clarify why not switch keyboard layout for languages that have IME mode
Yusyuriv Mar 23, 2025
4df42a0
Add doc comments and additional error handling in keyboard layout swi…
Yusyuriv Mar 23, 2025
1bf5733
Fix incorrect error handling logic in keyboard layout change
Yusyuriv Mar 23, 2025
5be88dd
Remove blank line
Jack251970 Mar 23, 2025
c63debe
Add foreground window check
Jack251970 Mar 23, 2025
4fc7f70
Adjust formats
Jack251970 Mar 23, 2025
d827d0a
Use language tag instead of language id
Jack251970 Mar 23, 2025
4f2a951
Small code style changes in keyboard change logic
Yusyuriv Mar 23, 2025
ddec1bd
Merge pull request #3366 from Flow-Launcher/always-use-english
Yusyuriv Mar 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .cm/gitstream.cm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- mode: yaml -*-

Check failure on line 1 in .cm/gitstream.cm

View workflow job for this annotation

GitHub Actions / Check Spelling

`gitstream` is not a recognized word. (check-file-path)
# This example configuration for provides basic automations to get started with gitStream.
# View the gitStream quickstart for more examples: https://docs.gitstream.cm/examples/
manifest:
Expand All @@ -10,7 +10,7 @@
branch:
- l10n_dev
- dev
- r/(?i)(Dependabot|Renovate)/
- r/([Dd]ependabot|[Rr]enovate)/


automations:
Expand Down
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
interval: "daily"
open-pull-requests-limit: 3
ignore:
- dependency-name: "squirrel-windows"
reviewers:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/pr_assignee.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: Assign PR to creator

# Due to GitHub token limitation, only able to assign org members not authors from forks.
# https://github.com/thomaseizinger/assign-pr-creator-action/issues/3

on:
pull_request:
pull_request_target:
types: [opened]
branches-ignore:
- l10n_dev

permissions:
pull-requests: write

jobs:
automation:
runs-on: ubuntu-latest
steps:
- name: Assign PR to creator
uses: thomaseizinger/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
uses: toshimaru/[email protected]
5 changes: 4 additions & 1 deletion .github/workflows/pr_milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: Set Milestone
# Assigns the earliest created milestone that matches the below glob pattern.

on:
pull_request:
pull_request_target:
types: [opened]

permissions:
pull-requests: write

jobs:
automation:
runs-on: ubuntu-latest
Expand Down
24 changes: 14 additions & 10 deletions Flow.Launcher.Core/Configuration/Portable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin.SharedCommands;
using System.Linq;
using CommunityToolkit.Mvvm.DependencyInjection;
using Flow.Launcher.Plugin;

namespace Flow.Launcher.Core.Configuration
{
public class Portable : IPortable
{
private readonly IPublicAPI API = Ioc.Default.GetRequiredService<IPublicAPI>();

/// <summary>
/// As at Squirrel.Windows version 1.5.2, UpdateManager needs to be disposed after finish
/// </summary>
Expand All @@ -40,7 +44,7 @@ public void DisablePortableMode()
#endif
IndicateDeletion(DataLocation.PortableDataPath);

MessageBox.Show("Flow Launcher needs to restart to finish disabling portable mode, " +
API.ShowMsgBox("Flow Launcher needs to restart to finish disabling portable mode, " +
"after the restart your portable data profile will be deleted and roaming data profile kept");

UpdateManager.RestartApp(Constant.ApplicationFileName);
Expand All @@ -64,7 +68,7 @@ public void EnablePortableMode()
#endif
IndicateDeletion(DataLocation.RoamingDataPath);

MessageBox.Show("Flow Launcher needs to restart to finish enabling portable mode, " +
API.ShowMsgBox("Flow Launcher needs to restart to finish enabling portable mode, " +
"after the restart your roaming data profile will be deleted and portable data profile kept");

UpdateManager.RestartApp(Constant.ApplicationFileName);
Expand Down Expand Up @@ -95,13 +99,13 @@ public void RemoveUninstallerEntry()

public void MoveUserDataFolder(string fromLocation, string toLocation)
{
FilesFolders.CopyAll(fromLocation, toLocation);
FilesFolders.CopyAll(fromLocation, toLocation, (s) => API.ShowMsgBox(s));
VerifyUserDataAfterMove(fromLocation, toLocation);
}

public void VerifyUserDataAfterMove(string fromLocation, string toLocation)
{
FilesFolders.VerifyBothFolderFilesEqual(fromLocation, toLocation);
FilesFolders.VerifyBothFolderFilesEqual(fromLocation, toLocation, (s) => API.ShowMsgBox(s));
}

public void CreateShortcuts()
Expand Down Expand Up @@ -157,13 +161,13 @@ public void PreStartCleanUpAfterPortabilityUpdate()
// delete it and prompt the user to pick the portable data location
if (File.Exists(roamingDataDeleteFilePath))
{
FilesFolders.RemoveFolderIfExists(roamingDataDir);
FilesFolders.RemoveFolderIfExists(roamingDataDir, (s) => API.ShowMsgBox(s));

if (MessageBox.Show("Flow Launcher has detected you enabled portable mode, " +
if (API.ShowMsgBox("Flow Launcher has detected you enabled portable mode, " +
"would you like to move it to a different location?", string.Empty,
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
FilesFolders.OpenPath(Constant.RootDirectory);
FilesFolders.OpenPath(Constant.RootDirectory, (s) => API.ShowMsgBox(s));

Environment.Exit(0);
}
Expand All @@ -172,9 +176,9 @@ public void PreStartCleanUpAfterPortabilityUpdate()
// delete it and notify the user about it.
else if (File.Exists(portableDataDeleteFilePath))
{
FilesFolders.RemoveFolderIfExists(portableDataDir);
FilesFolders.RemoveFolderIfExists(portableDataDir, (s) => API.ShowMsgBox(s));

MessageBox.Show("Flow Launcher has detected you disabled portable mode, " +
API.ShowMsgBox("Flow Launcher has detected you disabled portable mode, " +
"the relevant shortcuts and uninstaller entry have been created");
}
}
Expand All @@ -186,7 +190,7 @@ public bool CanUpdatePortability()

if (roamingLocationExists && portableLocationExists)
{
MessageBox.Show(string.Format("Flow Launcher detected your user data exists both in {0} and " +
API.ShowMsgBox(string.Format("Flow Launcher detected your user data exists both in {0} and " +
"{1}. {2}{2}Please delete {1} in order to proceed. No changes have occurred.",
DataLocation.PortableDataPath, DataLocation.RoamingDataPath, Environment.NewLine));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
using Flow.Launcher.Plugin.SharedCommands;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Forms;
using Flow.Launcher.Core.Resource;
using CommunityToolkit.Mvvm.DependencyInjection;

namespace Flow.Launcher.Core.ExternalPlugins.Environments
{
public abstract class AbstractPluginEnvironment
{
protected readonly IPublicAPI API = Ioc.Default.GetRequiredService<IPublicAPI>();

internal abstract string Language { get; }

internal abstract string EnvName { get; }
Expand All @@ -25,7 +28,7 @@ public abstract class AbstractPluginEnvironment

internal virtual string FileDialogFilter => string.Empty;

internal abstract string PluginsSettingsFilePath { get; set; }
internal abstract string PluginsSettingsFilePath { get; set; }

internal List<PluginMetadata> PluginMetadataList;

Expand Down Expand Up @@ -57,7 +60,7 @@ internal IEnumerable<PluginPair> Setup()
EnvName,
Environment.NewLine
);
if (MessageBox.Show(noRuntimeMessage, string.Empty, MessageBoxButtons.YesNo) == DialogResult.No)
if (API.ShowMsgBox(noRuntimeMessage, string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.No)
{
var msg = string.Format(InternationalizationManager.Instance.GetTranslation("runtimePluginChooseRuntimeExecutable"), EnvName);
string selectedFile;
Expand All @@ -82,7 +85,7 @@ internal IEnumerable<PluginPair> Setup()
}
else
{
MessageBox.Show(string.Format(InternationalizationManager.Instance.GetTranslation("runtimePluginUnableToSetExecutablePath"), Language));
API.ShowMsgBox(string.Format(InternationalizationManager.Instance.GetTranslation("runtimePluginUnableToSetExecutablePath"), Language));
Log.Error("PluginsLoader",
$"Not able to successfully set {EnvName} path, setting's plugin executable path variable is still an empty string.",
$"{Language}Environment");
Expand All @@ -98,7 +101,7 @@ private void EnsureLatestInstalled(string expectedPath, string currentPath, stri
if (expectedPath == currentPath)
return;

FilesFolders.RemoveFolderIfExists(installedDirPath);
FilesFolders.RemoveFolderIfExists(installedDirPath, (s) => API.ShowMsgBox(s));

InstallEnvironment();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal PythonEnvironment(List<PluginMetadata> pluginMetadataList, PluginsSetti

internal override void InstallEnvironment()
{
FilesFolders.RemoveFolderIfExists(InstallPath);
FilesFolders.RemoveFolderIfExists(InstallPath, (s) => API.ShowMsgBox(s));

// Python 3.11.4 is no longer Windows 7 compatible. If user is on Win 7 and
// uses Python plugin they need to custom install and use v3.8.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal TypeScriptEnvironment(List<PluginMetadata> pluginMetadataList, PluginsS

internal override void InstallEnvironment()
{
FilesFolders.RemoveFolderIfExists(InstallPath);
FilesFolders.RemoveFolderIfExists(InstallPath, (s) => API.ShowMsgBox(s));

DroplexPackage.Drop(App.nodejs_16_18_0, InstallPath).Wait();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal TypeScriptV2Environment(List<PluginMetadata> pluginMetadataList, Plugin

internal override void InstallEnvironment()
{
FilesFolders.RemoveFolderIfExists(InstallPath);
FilesFolders.RemoveFolderIfExists(InstallPath, (s) => API.ShowMsgBox(s));

DroplexPackage.Drop(App.nodejs_16_18_0, InstallPath).Wait();

Expand Down
16 changes: 12 additions & 4 deletions Flow.Launcher.Core/ExternalPlugins/PluginsManifest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Logger;
using System;
using System.Collections.Generic;
using System.Threading;
Expand All @@ -21,7 +21,7 @@ public static class PluginsManifest

public static List<UserPlugin> UserPlugins { get; private set; }

public static async Task UpdateManifestAsync(CancellationToken token = default, bool usePrimaryUrlOnly = false)
public static async Task<bool> UpdateManifestAsync(CancellationToken token = default, bool usePrimaryUrlOnly = false)
{
try
{
Expand All @@ -31,8 +31,14 @@ public static async Task UpdateManifestAsync(CancellationToken token = default,
{
var results = await mainPluginStore.FetchAsync(token, usePrimaryUrlOnly).ConfigureAwait(false);

UserPlugins = results;
lastFetchedAt = DateTime.Now;
// If the results are empty, we shouldn't update the manifest because the results are invalid.
if (results.Count != 0)
{
UserPlugins = results;
lastFetchedAt = DateTime.Now;

return true;
}
}
}
catch (Exception e)
Expand All @@ -43,6 +49,8 @@ public static async Task UpdateManifestAsync(CancellationToken token = default,
{
manifestUpdateLock.Release();
}

return false;
}
}
}
4 changes: 2 additions & 2 deletions Flow.Launcher.Core/Flow.Launcher.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@

<ItemGroup>
<PackageReference Include="Droplex" Version="1.7.0" />
<PackageReference Include="FSharp.Core" Version="8.0.401" />
<PackageReference Include="FSharp.Core" Version="9.0.201" />
<PackageReference Include="Meziantou.Framework.Win32.Jobs" Version="3.4.0" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.1" />
<PackageReference Include="squirrel.windows" Version="1.5.2" NoWarn="NU1701" />
<PackageReference Include="StreamJsonRpc" Version="2.19.27" />
<PackageReference Include="StreamJsonRpc" Version="2.21.10" />
</ItemGroup>

<ItemGroup>
Expand Down
21 changes: 18 additions & 3 deletions Flow.Launcher.Core/Plugin/JsonRPCPluginBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Flow.Launcher.Core.Plugin
/// Represent the plugin that using JsonPRC
/// every JsonRPC plugin should has its own plugin instance
/// </summary>
internal abstract class JsonRPCPluginBase : IAsyncPlugin, IContextMenu, ISettingProvider, ISavable
public abstract class JsonRPCPluginBase : IAsyncPlugin, IContextMenu, ISettingProvider, ISavable
{
protected PluginInitContext Context;
public const string JsonRPC = "JsonRPC";
Expand All @@ -44,8 +44,10 @@ internal abstract class JsonRPCPluginBase : IAsyncPlugin, IContextMenu, ISetting
private string SettingConfigurationPath =>
Path.Combine(Context.CurrentPluginMetadata.PluginDirectory, "SettingsTemplate.yaml");

private string SettingPath => Path.Combine(DataLocation.PluginSettingsDirectory,
Context.CurrentPluginMetadata.Name, "Settings.json");
private string SettingDirectory => Path.Combine(DataLocation.PluginSettingsDirectory,
Context.CurrentPluginMetadata.Name);

private string SettingPath => Path.Combine(SettingDirectory, "Settings.json");

public abstract List<Result> LoadContextMenus(Result selectedResult);

Expand Down Expand Up @@ -155,9 +157,22 @@ public void Save()
Settings?.Save();
}

public bool NeedCreateSettingPanel()
{
return Settings.NeedCreateSettingPanel();
}

public Control CreateSettingPanel()
{
return Settings.CreateSettingPanel();
}

public void DeletePluginSettingsDirectory()
{
if (Directory.Exists(SettingDirectory))
{
Directory.Delete(SettingDirectory, true);
}
}
}
}
Loading
Loading