We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b257d7 commit bad3dd5Copy full SHA for bad3dd5
src/components/modals/common.tsx
@@ -182,7 +182,14 @@ export function TorrentLocation(props: LocationData) {
182
<Menu position="left-start" withinPortal returnFocus
183
middlewares={{ shift: true, flip: false }} offset={{ mainAxis: -20, crossAxis: 30 }}>
184
<Menu.Target>
185
- <ActionIcon py="md" disabled={props.disabled === true || props.lastPaths.length === 0}>
+ <ActionIcon
186
+ py="md"
187
+ disabled={
188
+ props.disabled === true ||
189
+ (props.lastPaths.length === 0 &&
190
+ config.values.interface.preconfiguredDirs.length === 0)
191
+ }
192
+ >
193
<Icon.ClockHistory size="16" />
194
</ActionIcon>
195
</Menu.Target>
0 commit comments