Skip to content

Commit 4ef7041

Browse files
committed
more toasts
1 parent 2a92294 commit 4ef7041

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ async function switchProfile(profileName) {
108108
if (profile) {
109109
await chrome.storage.sync.set({ 'currentProfile': profileName });
110110
logConfigurationRelatedStuff(`Switched to profile: ${profileName}`);
111+
showToast(`Switched to profile: ${profileName}`, 'info');
111112
return profile;
112113
} else {
113114
logConfigurationRelatedStuff(`Failed to switch to profile: ${profileName}`);
115+
showToast(`Failed to switch to profile: ${profileName}`, 'error');
114116
return null;
115117
}
116118
} catch (error) {

popup-page-scripts/popup-page-script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ async function updateGlobalSettings() {
5353
currentProfile.enableShortcuts = document.getElementById('shortcutsToggle').checked;
5454
await saveCurrentProfile();
5555
logToConsole('Updated global settings');
56+
showToast('Global settings updated', 'success');
5657
}
5758

5859
/**

0 commit comments

Comments
 (0)