Skip to content

Commit

Permalink
Merge pull request #863 from ubports/drivers-never-again
Browse files Browse the repository at this point in the history
Add option to dismiss the driver notice forever
  • Loading branch information
Flohack74 authored Aug 27, 2019
2 parents e66cfc6 + be78a82 commit 0b71a20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/html/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ html
include modals/select-device
include modals/developer-mode
include modals/options
include modals/windows-drivers
include modals/new-update
include modals/windows-drivers
include modals/no-network
// --- Scripts ---
// Animated loading screen
Expand Down
3 changes: 2 additions & 1 deletion src/html/modals/windows-drivers.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
br
| As a last resort, we also have #[a(onclick="shell.openExternal('https://devices.ubuntu-touch.io')") manual installation instructions for every device], that you can follow if you want to install without using the UBports Installer.
.modal-footer
button.btn.btn-default(type='button', data-dismiss='modal') Continue
button.btn.btn-default(type='button', data-dismiss='modal') Dismiss
button#btn-driver-never-ask.btn.btn-primary(type='button', data-dismiss='modal', onclick="localStorage.setItem('neverAskForWindowsDrivers', 'true');") Don't ask me again
2 changes: 1 addition & 1 deletion src/html/scripts/ui.pug
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ script.
$("#options-custom-tools-snap-note").show();
}

if (process.platform === "win32") {
if (process.platform === "win32" && !localStorage.getItem('neverAskForWindowsDrivers')) {
modals.show('windows-drivers');
}

Expand Down

0 comments on commit 0b71a20

Please sign in to comment.