Add app progress on file uploads.
This commit is contained in:
9
src/main/util/setAppProgressBar.ts
Normal file
9
src/main/util/setAppProgressBar.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { getMainWindow } from "./toRenderer";
|
||||
|
||||
const setAppProgressbar = (progress: number): void => {
|
||||
const mainWindow = getMainWindow();
|
||||
if (mainWindow) {
|
||||
mainWindow.setProgressBar(progress);
|
||||
}
|
||||
};
|
||||
export default setAppProgressbar;
|
||||
Reference in New Issue
Block a user