fix: Windows uyumlulugu - APPDATA config, taskkill
Build Windows / build-windows (push) Has been cancelled
Build Windows / build-windows (push) Has been cancelled
This commit is contained in:
1 parent
d622d0ec04
commit
9a0e89bcea
5 files changed
+12
-3
No files matched your search
@@ -21,7 +21,11 @@ class AppShortcuts extends StatelessWidget {
|
||||
|
||||
// Ctrl+Shift+Q: tüm pencereleri kapat
|
||||
if (ctrl && shift && event.logicalKey == LogicalKeyboardKey.keyQ) {
|
||||
Process.runSync('pkill', ['imajviewer']);
|
||||
if (Platform.isWindows) {
|
||||
Process.runSync('taskkill', ['/F', '/IM', 'imajviewer.exe']);
|
||||
} else {
|
||||
Process.runSync('pkill', ['imajviewer']);
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user